update
This commit is contained in:
@@ -22,7 +22,7 @@ typedef pthread_cond_t os_condition_t;
|
||||
|
||||
#else
|
||||
|
||||
Error! Condition variables are not meaningful for a non-threaded program.
|
||||
#error Condition variables are not meaningful for a non-threaded program.
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -14,6 +14,10 @@ typedef pthread_t os_thread_t;
|
||||
== 0)
|
||||
#define os_thread_detach(t) INSIST(pthread_detach((t)) == 0)
|
||||
|
||||
#else
|
||||
|
||||
#error Threads are not meaningful for a non-threaded program.
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* THREAD_H */
|
||||
|
||||
Reference in New Issue
Block a user