9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
* the packaging of this file.
*/
#include "config.h"
#ifndef _WIN32
# include <unistd.h>
#else
# include <windows.h>
#endif
#import "OFThread.h"
#import "OFList.h"
#import "OFAutoreleasePool.h"
|
>
|
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
* the packaging of this file.
*/
#include "config.h"
#ifndef _WIN32
# include <unistd.h>
# include <sched.h>
#else
# include <windows.h>
#endif
#import "OFThread.h"
#import "OFList.h"
#import "OFAutoreleasePool.h"
|
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
{
#ifndef _WIN32
usleep(msecs * 1000);
#else
Sleep(msecs);
#endif
}
+ (void)terminate
{
[self terminateWithObject: nil];
}
+ (void)terminateWithObject: (id)obj
|
>
>
>
>
>
>
>
>
>
|
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
{
#ifndef _WIN32
usleep(msecs * 1000);
#else
Sleep(msecs);
#endif
}
+ (void)yield
{
#ifndef _WIN32
sched_yield();
#else
Sleep(0);
#endif
}
+ (void)terminate
{
[self terminateWithObject: nil];
}
+ (void)terminateWithObject: (id)obj
|