diff options
Diffstat (limited to '')
-rw-r--r-- | default.bld | 5 | ||||
-rw-r--r-- | src/stable/thread.cpp | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/default.bld b/default.bld index 826164c..b30e374 100644 --- a/default.bld +++ b/default.bld | |||
@@ -23,6 +23,11 @@ action "default" | |||
23 | targets("tools")]; | 23 | targets("tools")]; |
24 | } | 24 | } |
25 | 25 | ||
26 | action "lib" | ||
27 | { | ||
28 | build: ["header-links", "libbu++.a"]; | ||
29 | } | ||
30 | |||
26 | action "pkg" | 31 | action "pkg" |
27 | { | 32 | { |
28 | build: targets("pkg"); | 33 | build: targets("pkg"); |
diff --git a/src/stable/thread.cpp b/src/stable/thread.cpp index 7d362e9..5fe034a 100644 --- a/src/stable/thread.cpp +++ b/src/stable/thread.cpp | |||
@@ -6,6 +6,7 @@ | |||
6 | */ | 6 | */ |
7 | 7 | ||
8 | #include "bu/thread.h" | 8 | #include "bu/thread.h" |
9 | #include <sched.h> | ||
9 | 10 | ||
10 | namespace Bu { subExceptionDef( ThreadException ); } | 11 | namespace Bu { subExceptionDef( ThreadException ); } |
11 | 12 | ||
@@ -73,10 +74,6 @@ bool Bu::Thread::join() | |||
73 | 74 | ||
74 | void Bu::Thread::yield() | 75 | void Bu::Thread::yield() |
75 | { | 76 | { |
76 | #ifndef WIN32 | ||
77 | pthread_yield(); | ||
78 | #else | ||
79 | sched_yield(); | 77 | sched_yield(); |
80 | #endif | ||
81 | } | 78 | } |
82 | 79 | ||