X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ucw%2Fthreads.h;h=3796abf57afd399c3bdf7639705c79918f55658b;hb=bc5f818d21b7aceaf2c0e263b00aa4295211d8f9;hp=3c1f29b799ccf292e44ae38df900d23e5fe67326;hpb=0ca8c151f5afe1680e98f3bfbe9d5c752d8a2924;p=libucw.git diff --git a/ucw/threads.h b/ucw/threads.h index 3c1f29b7..3796abf5 100644 --- a/ucw/threads.h +++ b/ucw/threads.h @@ -43,14 +43,14 @@ static inline int ucwlib_thread_id(struct ucwlib_context *c) { return c->_thread void ucwlib_lock(void); void ucwlib_unlock(void); -extern uns ucwlib_thread_stack_size; +extern uint ucwlib_thread_stack_size; #else /* We have no threads, let's simulate the context and locking */ -extern struct ucwlib_context default_ucwlib_context; -static inline struct ucwlib_context *ucwlib_thread_context(void) { return &default_ucwlib_context; } +extern struct ucwlib_context ucwlib_default_context; +static inline struct ucwlib_context *ucwlib_thread_context(void) { return &ucwlib_default_context; } static inline int ucwlib_thread_id(struct ucwlib_context *c UNUSED) { return 0; }