added pthread_once() implementation and tests

there is still a TODO on an init race condition 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23076 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2007-12-07 21:02:59 +00:00
parent 4ff6af6d52
commit d2d6724788
16 changed files with 1192 additions and 1 deletions
+1
View File
@@ -125,6 +125,7 @@ extern int pthread_condattr_setpshared(pthread_condattr_t *condAttr, int process
/* misc. functions */
extern int pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void));
extern int pthread_once(pthread_once_t *once_control, void (*init_routine)());
/* thread attributes functions */
extern int pthread_attr_destroy(pthread_attr_t *attr);