aboutsummaryrefslogtreecommitdiff
path: root/src/cancel.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-03-19 15:40:09 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2024-03-19 15:57:52 +0100
commitbade6ae30109f88d4892624a01bb19e794c15c1b (patch)
tree649063c479e168bc49f197beec1e2e40bf5ec24e /src/cancel.cpp
parent930bfb287de0a38746493463016d0e4cea153ac0 (diff)
downloadlanes-bade6ae30109f88d4892624a01bb19e794c15c1b.tar.gz
lanes-bade6ae30109f88d4892624a01bb19e794c15c1b.tar.bz2
lanes-bade6ae30109f88d4892624a01bb19e794c15c1b.zip
C++ migration: NULL → nullptr
Diffstat (limited to 'src/cancel.cpp')
-rw-r--r--src/cancel.cpp6
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 }