X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Fprocesses%2Fethread.cpp;h=33f0a90b03e9f4c1fd4a8680798fce348d899962;hb=d7e8a05960951d8ce67e36c587726a851e2f5165;hp=15b39564d72121b56d7cdcc3108f4aa8bafae840;hpb=fa30e6adff1dea5d6b3903279ef024dd3bed043f;p=feisty_meow.git diff --git a/nucleus/library/processes/ethread.cpp b/nucleus/library/processes/ethread.cpp index 15b39564..33f0a90b 100644 --- a/nucleus/library/processes/ethread.cpp +++ b/nucleus/library/processes/ethread.cpp @@ -88,7 +88,7 @@ ethread::ethread() : _thread_ready(false), _thread_active(false), _stop_thread(false), - _data(NIL), + _data(NULL_POINTER), #ifdef _MSC_VER _handle(0), #else @@ -106,7 +106,7 @@ ethread::ethread(int sleep_timer, timed_thread_types how) : _thread_ready(false), _thread_active(false), _stop_thread(false), - _data(NIL), + _data(NULL_POINTER), #ifdef _MSC_VER _handle(0), #else @@ -229,7 +229,7 @@ void ethread::one_shot_thread_driver(void *hidden_pointer) FUNCDEF("one_shot_thread_driver"); ethread *manager = (ethread *)hidden_pointer; #ifndef _MSC_VER - if (!manager) return NIL; + if (!manager) return NULL_POINTER; #else if (!manager) return; #endif @@ -245,8 +245,8 @@ void ethread::one_shot_thread_driver(void *hidden_pointer) _current_threads().decrement(); #endif #ifndef _MSC_VER - pthread_exit(NIL); - return NIL; + pthread_exit(NULL_POINTER); + return NULL_POINTER; #else _endthread(); #endif @@ -263,7 +263,7 @@ void ethread::periodic_thread_driver(void *hidden_pointer) FUNCDEF("periodic_thread_driver"); ethread *manager = (ethread *)hidden_pointer; #if defined(__UNIX__) || defined(__GNU_WINDOWS__) - if (!manager) return NIL; + if (!manager) return NULL_POINTER; #elif defined(_MSC_VER) if (!manager) return; #endif @@ -317,8 +317,8 @@ void ethread::periodic_thread_driver(void *hidden_pointer) _current_threads().decrement(); #endif #ifndef _MSC_VER - pthread_exit(NIL); - return NIL; + pthread_exit(NULL_POINTER); + return NULL_POINTER; #else _endthread(); #endif