MCPcopy Create free account
hub / github.com/HumbleNet/HumbleNet / ILibSpawnNormalThread

Function ILibSpawnNormalThread

3rdparty/webrtc/Microstack/ILibParsers.c:7457–7476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7455}
7456
7457void* ILibSpawnNormalThread(voidfp method, void* arg)
7458{
7459#if defined (_POSIX) || defined (__APPLE__)
7460 intptr_t result;
7461 void* (*fptr) (void* a);
7462 pthread_t newThread;
7463 fptr = (void*(*)(void*))method;
7464 result = (intptr_t)pthread_create(&newThread, NULL, fptr, arg);
7465 pthread_detach(newThread);
7466 return (void*)result;
7467#endif
7468
7469#ifdef WIN32
7470 return CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)method, arg, 0, NULL );
7471#endif
7472
7473#ifdef UNDER_CE
7474 return CreateThread(NULL, 0, method, arg, 0, NULL );
7475#endif
7476}
7477
7478void ILibEndThisThread()
7479{

Callers 3

mainFunction · 0.85
poll_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected