Changes in tests/concurrent/clib.c [a5e7233:df65c0c]
- File:
-
- 1 edited
-
tests/concurrent/clib.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrent/clib.c
ra5e7233 rdf65c0c 2 2 #include <stdlib.h> 3 3 #include <clib/cfathread.h> 4 #include <bits/defs.hfa>5 4 6 5 extern "C" { … … 62 61 cfathread_cluster_add_worker( cl, NULL, NULL, NULL ); 63 62 cfathread_cluster_add_worker( cl, NULL, NULL, NULL ); 64 65 cfathread_attr_t attr;66 cfathread_attr_init(&attr);67 cfathread_attr_setcluster(&attr, cl);68 69 63 cfathread_t u; 70 cfathread_create( &u, &attr, Unparker, NULL );64 cfathread_create( &u, NULL, Unparker, NULL ); 71 65 { 72 66 cfathread_t t[20]; 73 67 for(int i = 0; i < 20; i++) { 74 cfathread_create( &t[i], &attr, Worker, NULL );68 cfathread_create( &t[i], NULL, Worker, NULL ); 75 69 } 76 70 for(int i = 0; i < 20; i++) { … … 80 74 stop = true; 81 75 cfathread_join(u, NULL); 82 cfathread_attr_destroy(&attr);83 76 fflush(stdout); 84 77 _exit(0);
Note:
See TracChangeset
for help on using the changeset viewer.