/* start polling vring */
worker_thread_status = WORKER_STATE_START;
fprintf(stdout, "New Device %s, Device ID %d\n", path, vid);
- if (pthread_create(&tid, NULL, &ctrlr_worker, ctrlr) < 0) {
+ if (rte_ctrl_thread_create(&tid, "vhostblk-ctrlr", NULL,
+ &ctrlr_worker, ctrlr) != 0) {
fprintf(stderr, "Worker Thread Started Failed\n");
return -1;
}
while (1)
sleep(1);
+ /* clean up the EAL */
+ rte_eal_cleanup();
+
return 0;
}