MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / hb_thread_to_integer

Function hb_thread_to_integer

libhb/ports.c:963–978  ·  view source on GitHub ↗

Get a unique identifier to thread and represent as 64-bit unsigned. * If unsupported, the value 0 is be returned. * Caller should use result only for display/log purposes. */

Source from the content-addressed store, hash-verified

961 * Caller should use result only for display/log purposes.
962 */
963static uint64_t hb_thread_to_integer( const hb_thread_t* t )
964{
965#if defined( SYS_CYGWIN )
966 return (uint64_t)t->thread;
967#elif defined( _WIN32 ) || defined( __MINGW32__ )
968# if defined(PTW32_VERSION)
969 return (uint64_t)(ptrdiff_t)t->thread.p;
970# else
971 return (uint64_t)t->thread;
972# endif
973#elif defined( SYS_DARWIN )
974 return (unsigned long)t->thread;
975#else
976 return (uint64_t)t->thread;
977#endif
978}
979
980/************************************************************************
981 * hb_thread_func()

Callers 3

hb_thread_funcFunction · 0.85
hb_thread_initFunction · 0.85
hb_thread_closeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected