* thread.cc (pthread_setschedprio): New function.
* include/pthread.h (pthread_setschedprio): Declare. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. * cygwin.din (pthread_setschedprio): Export. * posix.sgml (std-notimpl) Move pthread_setschedprio from here... (std-susv4) ...to here.
This commit is contained in:
@@ -2306,6 +2306,17 @@ pthread_setschedparam (pthread_t thread, int policy,
|
||||
return rv;
|
||||
}
|
||||
|
||||
extern "C" int
|
||||
pthread_setschedprio (pthread_t thread, int priority)
|
||||
{
|
||||
if (!pthread::is_good_object (&thread))
|
||||
return ESRCH;
|
||||
int rv =
|
||||
sched_set_thread_priority (thread->win32_obj_id, priority);
|
||||
if (!rv)
|
||||
thread->attr.schedparam.sched_priority = priority;
|
||||
return rv;
|
||||
}
|
||||
|
||||
extern "C" int
|
||||
pthread_setspecific (pthread_key_t key, const void *value)
|
||||
|
Reference in New Issue
Block a user