source:
CIVL/examples/translation/pthread/funcPointProb.cvl@
c1087dd
| Last change on this file since c1087dd was 289415b, checked in by , 12 years ago | |
|---|---|
|
|
| File size: 217 bytes | |
| Rev | Line | |
|---|---|---|
| [289415b] | 1 | #include <civlc.h> |
| 2 | ||
| 3 | void * funcA(void *arg){ | |
| 4 | return NULL; | |
| 5 | } | |
| 6 | ||
| 7 | void spawner(void *(start_routine)(void * arg)){ | |
| 8 | $proc t = $spawn start_routine(NULL); | |
| 9 | $wait(t); | |
| 10 | } | |
| 11 | ||
| 12 | int main(void){ | |
| 13 | spawner(funcA); | |
| 14 | return 0; | |
| 15 | } |
Note:
See TracBrowser
for help on using the repository browser.
