aboutsummaryrefslogtreecommitdiff
path: root/src/cancel.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-10-28 16:58:18 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2024-10-28 16:58:18 +0100
commit0c23f179a46f919adf075b46f4cb8cbff3fc8ebb (patch)
tree58e6c51a0de6389475601bc542b939a84811465d /src/cancel.cpp
parentc860f557a7ba72e6a39ea5db36e293de802adea5 (diff)
downloadlanes-0c23f179a46f919adf075b46f4cb8cbff3fc8ebb.tar.gz
lanes-0c23f179a46f919adf075b46f4cb8cbff3fc8ebb.tar.bz2
lanes-0c23f179a46f919adf075b46f4cb8cbff3fc8ebb.zip
Some internal function name changes + slight lane:__index optimization
Diffstat (limited to 'src/cancel.cpp')
-rw-r--r--src/cancel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cancel.cpp b/src/cancel.cpp
index 46ed347..ebb0c67 100644
--- a/src/cancel.cpp
+++ b/src/cancel.cpp
@@ -61,7 +61,7 @@ THE SOFTWARE.
61// ################################################################################################# 61// #################################################################################################
62 62
63//--- 63//---
64// = thread_cancel( lane_ud [,timeout_secs=0.0] [,wake_lindas_bool=false] ) 64// = lane_cancel( lane_ud [,timeout_secs=0.0] [,wake_lindas_bool=false] )
65// 65//
66// The originator thread asking us specifically to cancel the other thread. 66// The originator thread asking us specifically to cancel the other thread.
67// 67//
@@ -139,7 +139,7 @@ LUAG_FUNC(cancel_test)
139// ################################################################################################# 139// #################################################################################################
140 140
141// bool[,reason] = lane_h:cancel( [cancel_op, hookcount] [, timeout] [, wake_lane]) 141// bool[,reason] = lane_h:cancel( [cancel_op, hookcount] [, timeout] [, wake_lane])
142LUAG_FUNC(thread_cancel) 142LUAG_FUNC(lane_cancel)
143{ 143{
144 Lane* const _lane{ ToLane(L_, StackIndex{ 1 }) }; 144 Lane* const _lane{ ToLane(L_, StackIndex{ 1 }) };
145 CancelOp const _op{ WhichCancelOp(L_, StackIndex{ 2 }) }; // this removes the cancel_op string from the stack 145 CancelOp const _op{ WhichCancelOp(L_, StackIndex{ 2 }) }; // this removes the cancel_op string from the stack