aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenoit Germain <bnt.germain@gmail.com>2013-12-02 14:38:04 +0100
committerBenoit Germain <bnt.germain@gmail.com>2013-12-02 14:38:04 +0100
commit59d2a8c681b05d666dc091922be3c94b4d363b0c (patch)
treed4e26c2cbff53f57df0070bcd15eb5712284f838 /src
parent9ddb5ae8bf4377bf48b822950e940b865df27b8f (diff)
downloadlanes-59d2a8c681b05d666dc091922be3c94b4d363b0c.tar.gz
lanes-59d2a8c681b05d666dc091922be3c94b4d363b0c.tar.bz2
lanes-59d2a8c681b05d666dc091922be3c94b4d363b0c.zip
pthread thread priority refacto: lanes.c
Diffstat (limited to 'src')
-rw-r--r--src/lanes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lanes.c b/src/lanes.c
index 9e32f9a..ec7fd9e 100644
--- a/src/lanes.c
+++ b/src/lanes.c
@@ -1976,8 +1976,9 @@ LUAG_FUNC( thread_new)
1976#define FIXED_ARGS 8 1976#define FIXED_ARGS 8
1977 uint_t args = lua_gettop(L) - FIXED_ARGS; 1977 uint_t args = lua_gettop(L) - FIXED_ARGS;
1978 1978
1979 // public Lanes API accepts a generic range (-3/+3 for windows and MinGW-pthread, -2/+2 for the rest of the world) 1979 // public Lanes API accepts a generic range -3/+3
1980 // that will be remapped into the platform-specific scheduler priority scheme 1980 // that will be remapped into the platform-specific scheduler priority scheme
1981 // On some platforms, -3 is equivalent to -2 and +3 to +2
1981 if( prio < THREAD_PRIO_MIN || prio > THREAD_PRIO_MAX) 1982 if( prio < THREAD_PRIO_MIN || prio > THREAD_PRIO_MAX)
1982 { 1983 {
1983 return luaL_error( L, "Priority out of range: %d..+%d (%d)", THREAD_PRIO_MIN, THREAD_PRIO_MAX, prio); 1984 return luaL_error( L, "Priority out of range: %d..+%d (%d)", THREAD_PRIO_MIN, THREAD_PRIO_MAX, prio);