ca6ddd823f
POCO C++ libraries for network based applications C++ class libraries for network-centric, portable applications, integrated perfectly with the C++ Standard Library. Includes network protocols (Sockets, HTTP, FTP, SMTP, POP3, etc.) and an XML parser. With a lot of feedback from landry@ Finally OK from dcoppa@
22 lines
812 B
Plaintext
22 lines
812 B
Plaintext
$OpenBSD: patch-Foundation_src_Thread_POSIX_cpp,v 1.1.1.1 2010/07/28 18:13:01 sebastia Exp $
|
|
--- Foundation/src/Thread_POSIX.cpp.orig Fri Jan 15 13:13:34 2010
|
|
+++ Foundation/src/Thread_POSIX.cpp Mon Jul 19 12:09:13 2010
|
|
@@ -129,7 +129,7 @@ void ThreadImpl::setOSPriorityImpl(int prio)
|
|
|
|
int ThreadImpl::getMinOSPriorityImpl()
|
|
{
|
|
-#if defined(__VMS) || defined(__digital__)
|
|
+#if defined(__VMS) || defined(__digital__) || defined(__OpenBSD__)
|
|
return PRI_OTHER_MIN;
|
|
#else
|
|
return sched_get_priority_min(SCHED_OTHER);
|
|
@@ -139,7 +139,7 @@ int ThreadImpl::getMinOSPriorityImpl()
|
|
|
|
int ThreadImpl::getMaxOSPriorityImpl()
|
|
{
|
|
-#if defined(__VMS) || defined(__digital__)
|
|
+#if defined(__VMS) || defined(__digital__) || defined(__OpenBSD__)
|
|
return PRI_OTHER_MAX;
|
|
#else
|
|
return sched_get_priority_max(SCHED_OTHER);
|