static void
free_node (void *n)
{
- node_t *node = n;
+ node_t *node = (node_t *)n;
assert (node->state == STATE_BUSY);
node->state = STATE_OUT;
}
static void*
worker (void *arg)
{
- thread_data_t *thread_data = arg;
+ thread_data_t *thread_data = (thread_data_t *)arg;
MonoThreadHazardPointers *hp;
int skip = thread_data->skip;
int i, j;
main (int argc, char *argv [])
{
int primes [] = { 1, 2, 3, 5, 7, 11, 13, 17 };
- MonoThreadInfoCallbacks thread_callbacks;
thread_data_t thread_data [NUM_THREADS];
int i;
- memset (&thread_callbacks, 0, sizeof (thread_callbacks));
-
mono_metadata_init ();
- mono_threads_init (&thread_callbacks, 0);
+ mono_thread_info_init (0);
mono_lls_init (&lls, free_node);