X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=threads-model.h;h=d4d2da29e82a7fc1c58a2a61db7ee61aac7206a5;hb=82df62c2b0805848b87bb71df5b66a4a66f8e25d;hp=344d58badada9f13297a149c220c0f33d505238a;hpb=a330eb33b1b62dfa71f3f0cb055367a30090c180;p=model-checker.git diff --git a/threads-model.h b/threads-model.h index 344d58b..d4d2da2 100644 --- a/threads-model.h +++ b/threads-model.h @@ -13,6 +13,11 @@ #include #include "modeltypes.h" +struct thread_params { + thrd_start_t func; + void *arg; +}; + /** @brief Represents the state of a user Thread */ typedef enum thread_state { /** Thread was just created and hasn't run yet */ @@ -148,7 +153,7 @@ Thread * thread_current(); static inline thread_id_t thrd_to_id(thrd_t t) { - return t; + return t.priv->get_id(); } /**