Home | History | Annotate | Download | only in glthread

Lines Matching full:once_control

365 # define glthread_once(ONCE_CONTROL, INITFUNCTION) \
367 ? pthread_once (ONCE_CONTROL, INITFUNCTION) \
368 : (glthread_once_singlethreaded (ONCE_CONTROL) ? (INITFUNCTION (), 0) : 0))
369 extern int glthread_once_singlethreaded (pthread_once_t *once_control);
472 # define glthread_once(ONCE_CONTROL, INITFUNCTION) \
474 ? glthread_once_multithreaded (ONCE_CONTROL, INITFUNCTION) \
475 : (glthread_once_singlethreaded (ONCE_CONTROL) ? (INITFUNCTION (), 0) : 0))
476 extern int glthread_once_multithreaded (pth_once_t *once_control, void (*initfunction) (void));
477 extern int glthread_once_singlethreaded (pth_once_t *once_control);
601 # define glthread_once(ONCE_CONTROL, INITFUNCTION) \
603 ? glthread_once_multithreaded (ONCE_CONTROL, INITFUNCTION) \
604 : (glthread_once_singlethreaded (ONCE_CONTROL) ? (INITFUNCTION (), 0) : 0))
605 extern int glthread_once_multithreaded (gl_once_t *once_control, void (*initfunction) (void));
606 extern int glthread_once_singlethreaded (gl_once_t *once_control);
754 # define glthread_once(ONCE_CONTROL, INITFUNCTION) \
755 (glthread_once_func (ONCE_CONTROL, INITFUNCTION), 0)
756 extern void glthread_once_func (gl_once_t *once_control, void (*initfunction) (void));
806 # define glthread_once(ONCE_CONTROL, INITFUNCTION) \
807 (*(ONCE_CONTROL) == 0 ? (*(ONCE_CONTROL) = ~ 0, INITFUNCTION (), 0) : 0)