#include "epicsTime.h"
#include "epicsTimer.h"
#include "libComAPI.h"
Go to the source code of this file.
|
LIBCOM_API int | generalTimeRegisterCurrentProvider (const char *name, int priority, TIMECURRENTFUN getTime) |
|
LIBCOM_API int | generalTimeRegisterEventProvider (const char *name, int priority, TIMEEVENTFUN getEvent) |
|
LIBCOM_API int | generalTimeAddIntCurrentProvider (const char *name, int priority, TIMECURRENTFUN getTime) |
|
LIBCOM_API int | generalTimeAddIntEventProvider (const char *name, int priority, TIMEEVENTFUN getEvent) |
|
LIBCOM_API int | generalTimeGetExceptPriority (epicsTimeStamp *pDest, int *pPrio, int ignorePrio) |
|
#define LAST_RESORT_PRIORITY 999 |
LIBCOM_API int generalTimeAddIntCurrentProvider |
( |
const char * |
name, |
|
|
int |
priority, |
|
|
TIMECURRENTFUN |
getTime |
|
) |
| |
Definition at line 487 of file epicsGeneralTime.c.
490 gtProvider *ptp = findProvider(>Pvt.timeProviders, gtPvt.timeListLock,
498 printf("Time provider '%s' is interrupt-callable\n", name);
union gtProvider::@16 getInt
#define epicsTimeOK
Success.
#define S_time_noProvider
No time provider.
LIBCOM_API int generalTimeAddIntEventProvider |
( |
const char * |
name, |
|
|
int |
priority, |
|
|
TIMEEVENTFUN |
getEvent |
|
) |
| |
Definition at line 444 of file epicsGeneralTime.c.
447 gtProvider *ptp = findProvider(>Pvt.eventProviders, gtPvt.eventListLock,
455 printf("Event provider '%s' is interrupt-callable\n", name);
union gtProvider::@16 getInt
#define epicsTimeOK
Success.
#define S_time_noProvider
No time provider.
LIBCOM_API int generalTimeGetExceptPriority |
( |
epicsTimeStamp * |
pDest, |
|
|
int * |
pPrio, |
|
|
int |
ignorePrio |
|
) |
| |
Definition at line 105 of file epicsGeneralTime.c.
121 if ((ignore > 0 && ptp->
priority == ignore) ||
122 (ignore < 0 && ptp->priority != -ignore))
133 printf("gTGExP provider '%s' returned error\n", ptp->name);
142 printf(
"gTGExP returning %s from provider '%s'\n",
146 printf(
"gTGExP returning error\n");
epicsMutexId timeListLock
union gtProvider::@15 get
#define epicsTimeOK
Success.
void epicsStdCall epicsMutexUnlock(epicsMutexId pmutexNode)
Release the semaphore.
int osdTimeGetCurrent(epicsTimeStamp *pDest)
#define ellNext(PNODE)
Find the next node in list.
LIBCOM_API size_t epicsStdCall epicsTimeToStrftime(char *pBuff, size_t bufLength, const char *pFormat, const epicsTimeStamp *pTS)
Convert epicsTimeStamp to string. See epicsTime::strftime()
void generalTime_Init(void)
Initialise the framework.
#define S_time_noProvider
No time provider.
int generalTimeGetExceptPriority(epicsTimeStamp *pDest, int *pPrio, int ignore)
#define epicsMutexMustLock(ID)
Claim a semaphore (see epicsMutexLock()).
#define ellFirst(PLIST)
Find the first node in list.
LIBCOM_API int generalTimeRegisterCurrentProvider |
( |
const char * |
name, |
|
|
int |
priority, |
|
|
TIMECURRENTFUN |
getTime |
|
) |
| |
Definition at line 460 of file epicsGeneralTime.c.
467 if (name ==
NULL || getTime ==
NULL)
479 insertProvider(ptp, >Pvt.timeProviders, gtPvt.timeListLock);
482 printf("Registered time provider '%s' at %d\n", name, priority);
union gtProvider::@15 get
union gtProvider::@16 getInt
#define epicsTimeOK
Success.
#define S_time_badArgs
Invalid arguments.
#define S_time_noMemory
Out of memory.
void generalTime_Init(void)
Initialise the framework.
char * epicsStrDup(const char *s)
LIBCOM_API int generalTimeRegisterEventProvider |
( |
const char * |
name, |
|
|
int |
priority, |
|
|
TIMEEVENTFUN |
getEvent |
|
) |
| |
Definition at line 417 of file epicsGeneralTime.c.
424 if (name ==
NULL || getEvent ==
NULL)
436 insertProvider(ptp, >Pvt.eventProviders, gtPvt.eventListLock);
439 printf("Registered event provider '%s' at %d\n", name, priority);
union gtProvider::@15 get
union gtProvider::@16 getInt
#define epicsTimeOK
Success.
#define S_time_badArgs
Invalid arguments.
#define S_time_noMemory
Out of memory.
void generalTime_Init(void)
Initialise the framework.
char * epicsStrDup(const char *s)