]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/dlopen-in-init.dtest/foo.c
6 #include <dispatch/dispatch.h>
15 static void* work1(void* arg
)
17 void* h
= dlopen("System/Library/Frameworks/Foundation.framework/Foundation", 0);
23 __attribute__((constructor
))
26 pthread_t workerThread
;
28 if ( pthread_create(&workerThread
, NULL
, work1
, NULL
) != 0 ) {
29 printf("[FAIL] dlopen-in-init, pthread_create\n");
34 pthread_join(workerThread
, &dummy
);