33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
id object;
};
/*
* This is done here to make sure this is done as early as possible in the main
* thread.
*/
static void __attribute__((constructor))
init(void)
{
pthread_attr_t pattr;
int policy;
struct sched_param param;
OF_ENSURE(pthread_attr_init(&pattr) == 0);
OF_ENSURE(pthread_attr_getschedpolicy(&pattr, &policy) == 0);
|
|
<
|
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
id object;
};
/*
* This is done here to make sure this is done as early as possible in the main
* thread.
*/
OF_CONSTRUCTOR()
{
pthread_attr_t pattr;
int policy;
struct sched_param param;
OF_ENSURE(pthread_attr_init(&pattr) == 0);
OF_ENSURE(pthread_attr_getschedpolicy(&pattr, &policy) == 0);
|