1#ifndef UPnPsdk_PTHREAD_HPP
2#define UPnPsdk_PTHREAD_HPP
33inline int initialize_thread() {
34#if defined(_WIN32) && defined(PTW32_STATIC_LIB)
35 return !pthread_win32_thread_attach_np();
53inline int cleanup_thread() {
54#if defined(_WIN32) && defined(PTW32_STATIC_LIB)
55 return !pthread_win32_thread_detach_np();
71typedef void (*start_routine)(
void* arg);
76#if defined(_MSC_VER) || defined(__APPLE__) || defined(DOXYGEN_RUN)
107 ::pthread_mutex_t& a_mutex );
112 ::pthread_mutex_t& m_mutex;
Scoped POSIX thread mutex lock is valid for the current scope of the object.
~CPthread_scoped_lock()
Unlock the mutex that was locked by the constructor.
Reengineered Object Oriented UPnP+ program code.
UPnPsdk_VIS uint64_t pthread_self()
Get pthread thread id as unsigned integer.
Macros to support visibility of external symbols.
#define UPnPsdk_VIS
Prefix to export symbol for external use.