The static void * Run (void * param)
{
return 0;
}
Pthread_create (& amp; Nullptr m_id, & amp; Run, this);
Void * value_ptr;
Pthread_join (m_id, & amp; Value_ptr);
To create the release,
Detected the memory leaks!
Dumping objects - & gt;
{399} normal block at 0 x00adc7d8, 160 bytes long.
Data: & lt;> 02 00 00 00 00 00 00 00 00 00 F0 02 D8 C7 AD 00
{378} normal block at 0 x00adb678, 160 bytes long.
Data: & lt; X & gt; 00 00 00 00 00 00 00 00 00 00 00 00 00 78 B6 AD
{59} normal block at 0 x00ad34a8, 16 bytes long.
Data: & lt;> 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
{58} normal block at 0 x00ad3458, 16 bytes long.
Data: & lt;> 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
The Object dump complete.
CodePudding user response:
Multiple Threads in the User Interface of http://msdn.microsoft.com/zh-cn/library/ms810439.aspxCodePudding user response:
Pthread_create multithreaded Unix operating system was created function, MFC?CodePudding user response:
Void * value_ptr;Pthread_join (m_id, & amp; Value_ptr);
Instead of directly
Pthread_join (m_id, NULL);
CodePudding user response: