From 59d2a8c681b05d666dc091922be3c94b4d363b0c Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Mon, 2 Dec 2013 14:38:04 +0100 Subject: pthread thread priority refacto: lanes.c --- src/lanes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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) #define FIXED_ARGS 8 uint_t args = lua_gettop(L) - FIXED_ARGS; - // public Lanes API accepts a generic range (-3/+3 for windows and MinGW-pthread, -2/+2 for the rest of the world) + // public Lanes API accepts a generic range -3/+3 // that will be remapped into the platform-specific scheduler priority scheme + // On some platforms, -3 is equivalent to -2 and +3 to +2 if( prio < THREAD_PRIO_MIN || prio > THREAD_PRIO_MAX) { return luaL_error( L, "Priority out of range: %d..+%d (%d)", THREAD_PRIO_MIN, THREAD_PRIO_MAX, prio); -- cgit v1.2.3-55-g6feb