Add elfutils to the distribution
[akaros.git] / tests / pthread_switch.c
index ffca972..70df52e 100644 (file)
@@ -68,9 +68,10 @@ int main(int argc, char** argv)
                nr_switch_loops = strtol(argv[1], 0, 10);
        printf("Making 2 threads of %d switches each\n", nr_switch_loops);
 
-       pthread_can_vcore_request(FALSE);       /* 2LS won't manage vcores */
+       parlib_never_yield = TRUE;
+       parlib_never_vc_request = TRUE;
        pthread_need_tls(FALSE);
-       pthread_lib_init();                                     /* gives us one vcore */
+       pthread_mcp_init();                                     /* gives us one vcore */
 
        /* each is passed the other's pthread_t.  th1 starts the switching. */
        if (pthread_create(&th1, NULL, &switch_thread, &th2))