Create a new thread using the POSIX standard Pthread_creaet function call in QT under Linux and compile it with the following code
extern "C" {
#include <pthread.h>
}
However, the new thread was not successfully created after running and no error was found !!
( There are additions when compiling links: -lpthread) One of the reasons I am not clear ...
and pthread_mutex_*** (mutex), pthread_cond_*** (conditional variable) and other related function estimation also invalid ...
Later, using the method provided by netizens: The C file is created as a function library, and then called in Qt.
To create a function library concrete methods Link: http://wenku.baidu.com/view/1f26d41455270722192ef722.html
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Under Linux, QT calls function calls in non-standard libraries----------such as Pthread_create, pthread_cond_***,