mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Compatibility improvements for QNX.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35451 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1e852b259e
commit
a99a5163fd
13 changed files with 3066 additions and 2272 deletions
|
@ -56,7 +56,7 @@
|
|||
# include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#ifdef __POSIX_SOURCE
|
||||
#if defined(__POSIX_SOURCE) || defined(__EXT_POSIX1_198808)
|
||||
#define NBLK_OPT O_NONBLOCK
|
||||
#else
|
||||
#define NBLK_OPT FNDELAY
|
||||
|
@ -462,7 +462,7 @@ unregisterActiveThread(NSThread *thread)
|
|||
|
||||
[(GSRunLoopThreadInfo*)thread->_runLoopInfo invalidate];
|
||||
[thread release];
|
||||
|
||||
|
||||
[[NSGarbageCollector defaultCollector] enableCollectorForPointer: thread];
|
||||
pthread_setspecific(thread_object_key, nil);
|
||||
}
|
||||
|
@ -574,7 +574,7 @@ unregisterActiveThread(NSThread *thread)
|
|||
/**
|
||||
* Set the priority of the current thread. This is a value in the
|
||||
* range 0.0 (lowest) to 1.0 (highest) which is mapped to the underlying
|
||||
* system priorities.
|
||||
* system priorities.
|
||||
*/
|
||||
+ (void) setThreadPriority: (double)pri
|
||||
{
|
||||
|
@ -980,7 +980,7 @@ static void *nsthreadLauncher(void* thread)
|
|||
[NSException raise: NSInternalInconsistencyException
|
||||
format: @"Failed to create pipe to handle perform in thread"];
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
lock = [NSLock new];
|
||||
performers = [NSMutableArray new];
|
||||
return self;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue