HomeSort by: relevance | last modified time | path
    Searched refs:once_control (Results 1 - 19 of 19) sorted by relevancy

  /src/external/gpl3/gdb/dist/gnulib/import/
windows-once.c 28 glwthread_once (glwthread_once_t *once_control, void (*initfunction) (void))
30 if (once_control->inited <= 0)
32 if (InterlockedIncrement (&once_control->started) == 0)
34 /* This thread is the first one to come to this once_control. */
35 InitializeCriticalSection (&once_control->lock);
36 EnterCriticalSection (&once_control->lock);
37 once_control->inited = 0;
39 once_control->inited = 1;
40 LeaveCriticalSection (&once_control->lock);
44 /* Don't let once_control->started grow and wrap around. *
    [all...]
windows-once.h 40 extern void glwthread_once (glwthread_once_t *once_control,
  /src/external/gpl3/gdb.old/dist/gnulib/import/
windows-once.c 28 glwthread_once (glwthread_once_t *once_control, void (*initfunction) (void))
30 if (once_control->inited <= 0)
32 if (InterlockedIncrement (&once_control->started) == 0)
34 /* This thread is the first one to come to this once_control. */
35 InitializeCriticalSection (&once_control->lock);
36 EnterCriticalSection (&once_control->lock);
37 once_control->inited = 0;
39 once_control->inited = 1;
40 LeaveCriticalSection (&once_control->lock);
44 /* Don't let once_control->started grow and wrap around. *
    [all...]
windows-once.h 40 extern void glwthread_once (glwthread_once_t *once_control,
  /src/lib/libpthread/
pthread_once.c 57 pthread_once(pthread_once_t *once_control, void (*routine)(void))
60 return __libc_thr_once_stub(once_control, routine);
62 if (once_control->pto_done == 0) {
63 pthread_mutex_lock(&once_control->pto_mutex);
64 pthread_cleanup_push(&once_cleanup, &once_control->pto_mutex);
65 if (once_control->pto_done == 0) {
68 once_control->pto_done = 1;
  /src/external/gpl2/gettext/dist/gettext-runtime/intl/
lock.c 365 glthread_once_singlethreaded (pthread_once_t *once_control)
369 char *firstbyte = (char *)once_control;
372 /* First time use of once_control. Invert the first byte. */
405 glthread_once_singlethreaded (pth_once_t *once_control)
408 if (*once_control == PTH_ONCE_INIT)
410 /* First time use of once_control. Invert the marker. */
411 *once_control = ~ PTH_ONCE_INIT;
482 glthread_once (gl_once_t *once_control, void (*initfunction) (void))
484 if (!once_control->inited)
488 if (mutex_lock (&once_control->mutex) != 0
    [all...]
lock.h 361 extern int glthread_once_singlethreaded (pthread_once_t *once_control);
482 extern int glthread_once_singlethreaded (pth_once_t *once_control);
621 extern void glthread_once (gl_once_t *once_control, void (*initfunction) (void));
622 extern int glthread_once_singlethreaded (gl_once_t *once_control);
771 extern void glthread_once (gl_once_t *once_control, void (*initfunction) (void));
  /src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/
lock.c 364 glthread_once_singlethreaded (pthread_once_t *once_control)
368 char *firstbyte = (char *)once_control;
371 /* First time use of once_control. Invert the first byte. */
404 glthread_once_singlethreaded (pth_once_t *once_control)
407 if (*once_control == PTH_ONCE_INIT)
409 /* First time use of once_control. Invert the marker. */
410 *once_control = ~ PTH_ONCE_INIT;
481 glthread_once (gl_once_t *once_control, void (*initfunction) (void))
483 if (!once_control->inited)
487 if (mutex_lock (&once_control->mutex) != 0
    [all...]
lock.h 360 extern int glthread_once_singlethreaded (pthread_once_t *once_control);
481 extern int glthread_once_singlethreaded (pth_once_t *once_control);
620 extern void glthread_once (gl_once_t *once_control, void (*initfunction) (void));
621 extern int glthread_once_singlethreaded (gl_once_t *once_control);
770 extern void glthread_once (gl_once_t *once_control, void (*initfunction) (void));
  /src/external/gpl2/gettext/dist/gettext-tools/libgettextpo/
lock.c 364 glthread_once_singlethreaded (pthread_once_t *once_control)
368 char *firstbyte = (char *)once_control;
371 /* First time use of once_control. Invert the first byte. */
404 glthread_once_singlethreaded (pth_once_t *once_control)
407 if (*once_control == PTH_ONCE_INIT)
409 /* First time use of once_control. Invert the marker. */
410 *once_control = ~ PTH_ONCE_INIT;
481 glthread_once (gl_once_t *once_control, void (*initfunction) (void))
483 if (!once_control->inited)
487 if (mutex_lock (&once_control->mutex) != 0
    [all...]
lock.h 360 extern int glthread_once_singlethreaded (pthread_once_t *once_control);
481 extern int glthread_once_singlethreaded (pth_once_t *once_control);
620 extern void glthread_once (gl_once_t *once_control, void (*initfunction) (void));
621 extern int glthread_once_singlethreaded (gl_once_t *once_control);
770 extern void glthread_once (gl_once_t *once_control, void (*initfunction) (void));
  /src/lib/libc/include/
reentrant.h 315 thr_once(once_t *once_control, void (*routine)(void))
317 if (__predict_false(once_control->pto_done == 0)) {
319 once_control->pto_done = 1;
  /src/external/gpl3/gdb/dist/gnulib/import/glthread/
lock.c 706 glthread_once_singlethreaded (pthread_once_t *once_control)
710 char *firstbyte = (char *)once_control;
713 /* First time use of once_control. Invert the first byte. */
724 glthread_once_multithreaded (pthread_once_t *once_control,
727 int err = pthread_once (once_control, init_function);
732 if (glthread_once_singlethreaded (once_control))
lock.h 195 # define glthread_once(ONCE_CONTROL, INITFUNCTION) \
196 (call_once (ONCE_CONTROL, INITFUNCTION), 0)
511 # define glthread_once(ONCE_CONTROL, INITFUNCTION) \
513 ? pthread_once (ONCE_CONTROL, INITFUNCTION) \
514 : (glthread_once_singlethreaded (ONCE_CONTROL) ? (INITFUNCTION (), 0) : 0))
516 # define glthread_once(ONCE_CONTROL, INITFUNCTION) \
518 ? glthread_once_multithreaded (ONCE_CONTROL, INITFUNCTION) \
519 : (glthread_once_singlethreaded (ONCE_CONTROL) ? (INITFUNCTION (), 0) : 0))
520 extern int glthread_once_multithreaded (pthread_once_t *once_control,
523 extern int glthread_once_singlethreaded (pthread_once_t *once_control);
    [all...]
  /src/external/gpl3/gdb.old/dist/gnulib/import/glthread/
lock.c 706 glthread_once_singlethreaded (pthread_once_t *once_control)
710 char *firstbyte = (char *)once_control;
713 /* First time use of once_control. Invert the first byte. */
724 glthread_once_multithreaded (pthread_once_t *once_control,
727 int err = pthread_once (once_control, init_function);
732 if (glthread_once_singlethreaded (once_control))
lock.h 195 # define glthread_once(ONCE_CONTROL, INITFUNCTION) \
196 (call_once (ONCE_CONTROL, INITFUNCTION), 0)
511 # define glthread_once(ONCE_CONTROL, INITFUNCTION) \
513 ? pthread_once (ONCE_CONTROL, INITFUNCTION) \
514 : (glthread_once_singlethreaded (ONCE_CONTROL) ? (INITFUNCTION (), 0) : 0))
516 # define glthread_once(ONCE_CONTROL, INITFUNCTION) \
518 ? glthread_once_multithreaded (ONCE_CONTROL, INITFUNCTION) \
519 : (glthread_once_singlethreaded (ONCE_CONTROL) ? (INITFUNCTION (), 0) : 0))
520 extern int glthread_once_multithreaded (pthread_once_t *once_control,
523 extern int glthread_once_singlethreaded (pthread_once_t *once_control);
    [all...]
  /src/external/gpl2/gettext/dist/gettext-runtime/tests/
test-lock.c 514 static gl_once_t once_control; variable
558 gl_once (once_control, once_execute);
621 /* Preparation for the next round: Initialize once_control. */
622 memcpy (&once_control, &fresh_once, sizeof (gl_once_t));
  /src/external/bsd/libc++/dist/libcxxrt/src/
exception.cc 362 static pthread_once_t once_control = PTHREAD_ONCE_INIT; variable
397 if ((0 == pthread_once) || pthread_once(&once_control, init_key))
  /src/lib/libc/time/
localtime.c 200 once(once_t *once_control, void init_routine(void))
203 pthread_once(once_control, init_routine);
205 if (!*once_control) {
206 *once_control = true;

Completed in 28 milliseconds