diff options
Diffstat (limited to '')
-rw-r--r-- | src/cancel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cancel.cpp b/src/cancel.cpp index 0a5adb6..8558008 100644 --- a/src/cancel.cpp +++ b/src/cancel.cpp | |||
@@ -84,7 +84,7 @@ static void cancel_hook( lua_State* L, lua_Debug* ar) | |||
84 | DEBUGSPEW_CODE( fprintf( stderr, "cancel_hook\n")); | 84 | DEBUGSPEW_CODE( fprintf( stderr, "cancel_hook\n")); |
85 | if( cancel_test( L) != CANCEL_NONE) | 85 | if( cancel_test( L) != CANCEL_NONE) |
86 | { | 86 | { |
87 | lua_sethook( L, NULL, 0, 0); | 87 | lua_sethook( L, nullptr, 0, 0); |
88 | cancel_error( L); | 88 | cancel_error( L); |
89 | } | 89 | } |
90 | } | 90 | } |
@@ -119,7 +119,7 @@ static cancel_result thread_cancel_soft( Lane* s, double secs_, bool_t wake_lind | |||
119 | if( wake_lindas_) // wake the thread so that execution returns from any pending linda operation if desired | 119 | if( wake_lindas_) // wake the thread so that execution returns from any pending linda operation if desired |
120 | { | 120 | { |
121 | SIGNAL_T *waiting_on = s->waiting_on; | 121 | SIGNAL_T *waiting_on = s->waiting_on; |
122 | if( s->status == WAITING && waiting_on != NULL) | 122 | if( s->status == WAITING && waiting_on != nullptr) |
123 | { | 123 | { |
124 | SIGNAL_ALL( waiting_on); | 124 | SIGNAL_ALL( waiting_on); |
125 | } | 125 | } |
@@ -137,7 +137,7 @@ static cancel_result thread_cancel_hard( lua_State* L, Lane* s, double secs_, bo | |||
137 | s->cancel_request = CANCEL_HARD; // it's now signaled to stop | 137 | s->cancel_request = CANCEL_HARD; // it's now signaled to stop |
138 | { | 138 | { |
139 | SIGNAL_T *waiting_on = s->waiting_on; | 139 | SIGNAL_T *waiting_on = s->waiting_on; |
140 | if( s->status == WAITING && waiting_on != NULL) | 140 | if( s->status == WAITING && waiting_on != nullptr) |
141 | { | 141 | { |
142 | SIGNAL_ALL( waiting_on); | 142 | SIGNAL_ALL( waiting_on); |
143 | } | 143 | } |