diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2018-11-09 17:36:35 +0100 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2018-11-09 17:36:35 +0100 |
commit | a3ec8e0b6b5cc88063893fd7226599727a41dd29 (patch) | |
tree | 8b7f5304b55a49c60bf0f1b4b540143373e00c42 /src/lanes.lua | |
parent | b899b53286e9125f34fd7522f4a173ff12643b68 (diff) | |
download | lanes-a3ec8e0b6b5cc88063893fd7226599727a41dd29.tar.gz lanes-a3ec8e0b6b5cc88063893fd7226599727a41dd29.tar.bz2 lanes-a3ec8e0b6b5cc88063893fd7226599727a41dd29.zip |
new API lanes.set_thread_affinity(), and et_debug_threadname implemented with win32 pthread
Diffstat (limited to 'src/lanes.lua')
-rw-r--r-- | src/lanes.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lanes.lua b/src/lanes.lua index b82ae2a..6779095 100644 --- a/src/lanes.lua +++ b/src/lanes.lua | |||
@@ -190,7 +190,7 @@ lanes.configure = function( settings_) | |||
190 | -- | 190 | -- |
191 | -- 'opt': .priority: int (-3..+3) smaller is lower priority (0 = default) | 191 | -- 'opt': .priority: int (-3..+3) smaller is lower priority (0 = default) |
192 | -- | 192 | -- |
193 | -- .cancelstep: bool | uint | 193 | -- .cancelstep: bool | uint |
194 | -- false: cancellation check only at pending Linda operations | 194 | -- false: cancellation check only at pending Linda operations |
195 | -- (send/receive) so no runtime performance penalty (default) | 195 | -- (send/receive) so no runtime performance penalty (default) |
196 | -- true: adequate cancellation check (same as 100) | 196 | -- true: adequate cancellation check (same as 100) |
@@ -723,6 +723,7 @@ lanes.configure = function( settings_) | |||
723 | lanes.set_singlethreaded = core.set_singlethreaded | 723 | lanes.set_singlethreaded = core.set_singlethreaded |
724 | lanes.threads = core.threads or function() error "lane tracking is not available" end -- core.threads isn't registered if settings.track_lanes is false | 724 | lanes.threads = core.threads or function() error "lane tracking is not available" end -- core.threads isn't registered if settings.track_lanes is false |
725 | lanes.set_thread_priority = core.set_thread_priority | 725 | lanes.set_thread_priority = core.set_thread_priority |
726 | lanes.set_thread_affinity = core.set_thread_affinity | ||
726 | lanes.timer = timer | 727 | lanes.timer = timer |
727 | lanes.timer_lane = timer_lane | 728 | lanes.timer_lane = timer_lane |
728 | lanes.timers = timers | 729 | lanes.timers = timers |