Searched refs:mythread (Results 1 – 5 of 5) sorted by relevance
64 pthread_t mythread;72 r = pthread_create(&mythread, NULL, threadfunc, NULL);89 if ((r = pthread_kill(mythread, SIGINT)) != 0)91 if ((r = pthread_join(mythread, NULL)) != 0)
40 extern int32_t ocs_unsol_rq_thread(ocs_thread_t *mythread);
77 ocs_unsol_rq_thread(ocs_thread_t *mythread) in ocs_unsol_rq_thread() argument79 ocs_xport_rq_thread_info_t *thread_data = mythread->arg; in ocs_unsol_rq_thread()84 ocs_log_debug(ocs, "%s running\n", mythread->name); in ocs_unsol_rq_thread()85 while (!ocs_thread_terminate_requested(mythread)) { in ocs_unsol_rq_thread()102 ocs_log_debug(ocs, "%s exiting\n", mythread->name); in ocs_unsol_rq_thread()
676 void *ocs_thread_get_arg(ocs_thread_t *mythread) in ocs_thread_get_arg() argument678 return mythread->arg; in ocs_thread_get_arg()
975 typedef int32_t (*ocs_thread_fctn)(ocs_thread_t *mythread);1001 extern void *ocs_thread_get_arg(ocs_thread_t *mythread);