[threads] Store MonoInternalThread in MonoThreadInfo for use when detaching (#5058)
[mono.git] / mono / unit-tests / test-mono-linked-list-set.c
index a5e01ebe09ec6e5f913e1ad936c822596d39ecde..202d2fc07a11a46caf2006184fb44e72a7d68f84 100644 (file)
@@ -116,15 +116,12 @@ int
 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);