projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
model: move get_thread() implementations out of header
[model-checker.git]
/
libthreads.h
diff --git
a/libthreads.h
b/libthreads.h
index 4cf6ad352da0a47cd582a439f957c0d57a9b6528..0c02971342d06ffa903feb01b2d4daadc08754d4 100644
(file)
--- a/
libthreads.h
+++ b/
libthreads.h
@@
-1,3
+1,7
@@
+/** @file libthreads.h
+ * @brief Basic Thread Library Functionality.
+ */
+
#ifndef __LIBTHREADS_H__
#define __LIBTHREADS_H__
#ifndef __LIBTHREADS_H__
#define __LIBTHREADS_H__
@@
-5,10
+9,9
@@
extern "C" {
#endif
extern "C" {
#endif
- typedef int thread_id_t;
- typedef void (*thrd_start_t)();
+ typedef void (*thrd_start_t)(void *);
- typedef
thread_id_
t thrd_t;
+ typedef
in
t thrd_t;
int thrd_create(thrd_t *t, thrd_start_t start_routine, void *arg);
int thrd_join(thrd_t);
int thrd_create(thrd_t *t, thrd_start_t start_routine, void *arg);
int thrd_join(thrd_t);