X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcutil%2Fbeos%2Fsilcbeosthread.c;h=eb411412f6b0bd52ae0c0a7c2e74d3f21f4e85a9;hb=e7b6c157b80152bf9fb9266e6bdd93f9fb0db776;hp=d6e88be3e6f785dd5def6fa5d861d0ede66bea11;hpb=6b773ff581867c2817c53bca0cff3f92d433c69b;p=silc.git diff --git a/lib/silcutil/beos/silcbeosthread.c b/lib/silcutil/beos/silcbeosthread.c index d6e88be3..eb411412 100644 --- a/lib/silcutil/beos/silcbeosthread.c +++ b/lib/silcutil/beos/silcbeosthread.c @@ -16,9 +16,14 @@ GNU General Public License for more details. */ +/* I used Apache's APR code as a reference here. */ /* $Id$ */ -#include "silcincludes.h" +/* XXX This leaks memory. Perhaps the SilcThread API should be changed + since the silc_thread_self() causes that BeOS and OS/2 is hard to + do to support this SilcThread API */ + +#include "silc.h" #ifdef SILC_THREADS @@ -27,7 +32,7 @@ typedef struct { thread_id thread; SilcThreadStart start_func; void *context; - bool waitable; + SilcBool waitable; } *SilcBeosThread; /* Actual routine that is called by BeOS when the thread is created. @@ -42,7 +47,7 @@ static void *silc_thread_beos_start(void *context) #endif SilcThread silc_thread_create(SilcThreadStart start_func, void *context, - bool waitable) + SilcBool waitable) { #ifdef SILC_THREADS int ret; @@ -88,7 +93,7 @@ SilcThread silc_thread_self(void) #endif } -bool silc_thread_wait(SilcThread thread, void **exit_value) +SilcBool silc_thread_wait(SilcThread thread, void **exit_value) { #ifdef SILC_THREADS status_t ret, retval;