ObjFW  Diff

Differences From Artifact [430c90cbfe]:

  • File src/threading_pthread.m — part of check-in [d07c56a8bb] at 2017-04-02 01:06:35 on branch trunk — Add OF_CONSTRUCTOR() / OF_DESTRUCTOR() (user: js size: 6181)

To Artifact [9d56adf88b]:

  • File src/threading_pthread.m — part of check-in [4af49a13c3] at 2017-05-07 20:10:13 on branch trunk — Small code style change Casts are now written like types in variable declarations. (user: js size: 6182)

50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
	OF_ENSURE(pthread_attr_getschedparam(&pattr, &param) == 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, &param) == 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);