From fbcbfceb7fe95b974a4bbe46a1726034edde3946 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 29 Sep 2022 18:18:36 -0700 Subject: Replaced deprecated thread_yield with sched_yield. --- default.bld | 5 +++++ 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" targets("tools")]; } +action "lib" +{ + build: ["header-links", "libbu++.a"]; +} + action "pkg" { 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 @@ */ #include "bu/thread.h" +#include namespace Bu { subExceptionDef( ThreadException ); } @@ -73,10 +74,6 @@ bool Bu::Thread::join() void Bu::Thread::yield() { -#ifndef WIN32 - pthread_yield(); -#else sched_yield(); -#endif } -- cgit v1.2.3