winpr-thread: added an assertion to enforce that thread_list is correctly set
authorEmmanuel Ledoux <eledoux@hp.com>
Tue, 26 May 2015 15:55:27 +0000 (17:55 +0200)
committereledoux <eledoux@hp.com>
Tue, 26 May 2015 15:55:27 +0000 (17:55 +0200)
winpr/libwinpr/thread/thread.c

index f6a85c8..d0aaeec 100644 (file)
@@ -349,7 +349,8 @@ static BOOL winpr_StartThread(WINPR_THREAD *thread)
                WLog_ERR(TAG, "failed to launch the thread");
                goto error;
        }
-        
+       assert(ListDictionary_Contains(thread_list, &thread->thread));
+
        pthread_attr_destroy(&attr);
        dump_thread(thread);
        return TRUE;