MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pthread_create

Function pthread_create

dpdk/lib/eal/windows/include/pthread.h:45–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43#define pthread_cancel(thread) !TerminateThread((HANDLE) thread, 0)
44
45static inline int
46pthread_create(void *threadid, const void *threadattr, void *threadfunc,
47 void *args)
48{
49 RTE_SET_USED(threadattr);
50 HANDLE hThread;
51 hThread = CreateThread(NULL, 0,
52 (LPTHREAD_START_ROUTINE)(uintptr_t)threadfunc,
53 args, 0, (LPDWORD)threadid);
54 if (hThread) {
55 SetPriorityClass(GetCurrentProcess(), NORMAL_PRIORITY_CLASS);
56 SetThreadPriority(hThread, THREAD_PRIORITY_NORMAL);
57 }
58 return ((hThread != NULL) ? 0 : E_FAIL);
59}
60
61static inline int
62pthread_mutex_init(pthread_mutex_t *mutex,

Callers 15

DoInteractiveFunction · 0.50
zk_thread_createFunction · 0.50
dump_snapshotFunction · 0.50
estimate_sizeFunction · 0.50
zfs_send_resume_implFunction · 0.50
zfs_send_oneFunction · 0.50
zfs_show_diffsFunction · 0.50
create_workerFunction · 0.50
zpool_do_waitFunction · 0.50
zed_disk_event_initFunction · 0.50
zfs_slm_initFunction · 0.50
zfs_agent_initFunction · 0.50

Calls

no outgoing calls

Tested by 3

mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40