X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fthreads.h;h=66df5b1191cfa1d050d020c7bd3a01d3e4bd9fc3;hb=66da4eeb0b6c0e3cce5ef7788eb64151e536d68d;hp=d1ff1929aba37840d9cab9f5b5bf087639057550;hpb=26d1dd1430da05b8da4b1250b299a620ecd52102;p=model-checker.git diff --git a/include/threads.h b/include/threads.h index d1ff192..66df5b1 100644 --- a/include/threads.h +++ b/include/threads.h @@ -5,13 +5,18 @@ #ifndef __THREADS_H__ #define __THREADS_H__ +/* Forward declaration */ +struct Thread; /* actually, class; but this is safe */ + #ifdef __cplusplus extern "C" { #endif typedef void (*thrd_start_t)(void *); - typedef int thrd_t; + typedef struct { + struct Thread *priv; + } thrd_t; int thrd_create(thrd_t *t, thrd_start_t start_routine, void *arg); int thrd_join(thrd_t);