50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
OF_ENSURE(pthread_attr_getschedparam(&pattr, ¶m) == 0);
normalPrio = param.sched_priority;
pthread_attr_destroy(&pattr);
}
static void*
function_wrapper(void *data)
{
struct thread_ctx *ctx = data;
pthread_cleanup_push(free, data);
ctx->function(ctx->object);
|
|
|
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
OF_ENSURE(pthread_attr_getschedparam(&pattr, ¶m) == 0);
normalPrio = param.sched_priority;
pthread_attr_destroy(&pattr);
}
static void *
function_wrapper(void *data)
{
struct thread_ctx *ctx = data;
pthread_cleanup_push(free, data);
ctx->function(ctx->object);
|