com php-src: Updated the comment regarding what priority modes that are left out for the nice() implementation on Windows: win32/nice.c

From: Date: Sat, 19 Nov 2016 09:10:48 +0000
Subject: com php-src: Updated the comment regarding what priority modes that are left out for the nice() implementation on Windows: win32/nice.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-95882@lists.php.net to get a copy of this message
Commit: 673bbff0e508ea7ad89a9772f8a48dbe92ecc591 Author: Kalle Sommer Nielsen <kalle@php.net> Sat, 19 Nov 2016 10:10:48 +0100 Parents: ddf95667c432a3088fc6d176f4d9d719baaca20c Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=673bbff0e508ea7ad89a9772f8a48dbe92ecc591 Log: Updated the comment regarding what priority modes that are left out for the nice() implementation on Windows Changed paths: M win32/nice.c Diff: diff --git a/win32/nice.c b/win32/nice.c index 202a4d8..d248707 100644 --- a/win32/nice.c +++ b/win32/nice.c @@ -47,7 +47,18 @@ * This is applied to the main process, not per thread, although this could * be implemented using SetThreadPriority() at one point. * - * Note, it is intended that some priority classes are left out. + * Note, the following priority classes are left out with intention: + * + * . REALTIME_PRIORITY_CLASS + * Realtime priority class requires special system permissions to set, and + * can be dangerous in certain cases. + * + * . PROCESS_MODE_BACKGROUND_BEGIN + * . PROCESS_MODE_BACKGROUND_END + * Process mode is not covered because it can easily forgotten to be changed + * back and can cause unforseen side effects that is hard to debug. Besides + * that, these do generally not really fit into making a Windows somewhat + * compatible nice() function. */ PHPAPI int nice(zend_long p)

« previous php.cvs (#95882) next »