66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
newWithClass: [thread class]];
/*
* Nasty workaround for thread implementations which can't return a
* value on join.
*/
#ifdef OF_HAVE_BLOCKS
if (thread->block != nil)
thread->returnValue = [thread->block(thread->object) retain];
else
thread->returnValue = [[thread main] retain];
#else
thread->returnValue = [[thread main] retain];
#endif
|
|
|
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
newWithClass: [thread class]];
/*
* Nasty workaround for thread implementations which can't return a
* value on join.
*/
#ifdef OF_HAVE_BLOCKS
if (thread->block != NULL)
thread->returnValue = [thread->block(thread->object) retain];
else
thread->returnValue = [[thread main] retain];
#else
thread->returnValue = [[thread main] retain];
#endif
|