Exemplo n.º 1
0
int rtems_gxx_once(__gthread_once_t *once, void (*func) (void))
{
  #ifdef DEBUG_GXX_WRAPPERS
    printk( "gxx_wrappers: once=%x, func=%x\n", *once, func );
  #endif

  return _Once( once, func );
}
Exemplo n.º 2
0
int pthread_once(
  pthread_once_t  *once_control,
  void           (*init_routine)(void)
)
{
  if ( !once_control || !init_routine )
    return EINVAL;

  if ( once_control->is_initialized != 1 )
    return EINVAL;

  return _Once( &once_control->init_executed, init_routine );
}
Exemplo n.º 3
0
_Linfo *_Getcloc(void)
	{	/* get pointer to "C" locale */
	(void)_Once(&cloc_o, initcloc);
	return (&_Clocale);
	}