Commit 63e08029 authored by thomas's avatar thomas
Browse files

*** empty log message ***


git-svn-id: https://svn.grrrr.org/ext/trunk@258 4d9ac71a-51e6-0310-8455-cad1006bcd31
parent 816cd0fa
......@@ -25,6 +25,7 @@ WARRANTIES, see the file, "license.txt," in this distribution.
#ifdef NT
#include <windows.h>
#endif
#include <errno.h>
bool flext_base::StartThread(void *(*meth)(thr_params *p),thr_params *p,char *methname)
{
......@@ -38,7 +39,8 @@ bool flext_base::StartThread(void *(*meth)(thr_params *p),thr_params *p,char *me
pthread_t thrid;
int ret = pthread_create (&thrid,NULL,(void *(*)(void *))meth,p);
if(ret) {
error(ret == EAGAIN?"%s - Unsufficient resources to launch thread!":"%s - Could not launch method!",methname);
error((char *)(ret == EAGAIN?"%s - Unsufficient resources to launch thread!":"%s - Could not
launch method!"),methname);
delete p;
return false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment