source:
CIVL/examples/translation/pthread/pointerProb.c@
a853a2a
| Last change on this file since a853a2a was ccee2d5, checked in by , 12 years ago | |
|---|---|
|
|
| File size: 228 bytes | |
| Rev | Line | |
|---|---|---|
| [ccee2d5] | 1 | #include <civlc.h> |
| 2 | #include <pthread.h> | |
| 3 | ||
| 4 | void *foo(void *arg){ | |
| 5 | pthread_exit(NULL); | |
| 6 | } | |
| 7 | ||
| 8 | int main(void){ | |
| 9 | pthread_t p1, p2; | |
| 10 | pthread_create(&p1, NULL, foo, NULL); | |
| 11 | pthread_create(&p2, NULL, foo, NULL); | |
| 12 | pthread_exit(NULL); | |
| 13 | } |
Note:
See TracBrowser
for help on using the repository browser.
