add THREADFUNC prototype for threadOnce
This commit is contained in:
1 parent
232aaf659d
commit
3f3e77bce5
1 file changed
+2
-2
@@ -37,11 +37,11 @@ epicsShareFunc unsigned int epicsShareAPI threadGetStackSize(threadStackSizeClas
|
||||
typedef int threadOnceId;
|
||||
#define OSITHREAD_ONCE_INIT 0
|
||||
|
||||
/* void threadOnce(threadOnceId *id, void (*func)(void *), void *arg); */
|
||||
/* void threadOnce(threadOnceId *id, THREADFUNC, void *arg); */
|
||||
/* threadOnce is implemented as a macro */
|
||||
/* threadOnceOsd should not be called by user code */
|
||||
epicsShareFunc void epicsShareAPI threadOnceOsd(
|
||||
threadOnceId *id, void (*func)(void *), void *arg);
|
||||
threadOnceId *id, THREADFUNC, void *arg);
|
||||
|
||||
#define threadOnce(id,func,arg) \
|
||||
if(*(id)<=0) threadOnceOsd((id),(func),(arg))
|
||||
|
||||
Reference in new issue
Block a user