From 385b0add19ef049e4b33acf86e32c1640a87f39d Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 6 Apr 2010 15:27:34 +0000 Subject: [PATCH] * thread.cc (valid_sched_parameters): Declare extern here. (sched_set_thread_priority): Ditto. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/thread.cc | 2 ++ 2 files changed, 7 insertions(+) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index ab593f02c..476a1fe9b 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2010-04-06 Corinna Vinschen + + * thread.cc (valid_sched_parameters): Declare extern here. + (sched_set_thread_priority): Ditto. + 2010-04-06 Corinna Vinschen * include/sched.h: Remove, overruled by newlib file. diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc index 5681aadef..628d1d13f 100644 --- a/winsup/cygwin/thread.cc +++ b/winsup/cygwin/thread.cc @@ -40,6 +40,8 @@ details. */ extern "C" void __fp_lock_all (); extern "C" void __fp_unlock_all (); +extern "C" int valid_sched_parameters(const struct sched_param *); +extern "C" int sched_set_thread_priority(HANDLE thread, int priority); static inline verifyable_object_state verifyable_object_isvalid (void const * objectptr, thread_magic_t magic, void *static_ptr1 = NULL,