forked from enlightenment/efl
eina thread - check return of pthread_attr_init
fix CID 1401031
This commit is contained in:
parent
2bea2c7b87
commit
485ecc24ed
|
@ -66,7 +66,10 @@ _eina_thread_create(Eina_Thread *t, int affinity, void *(*func)(void *data), voi
|
||||||
sigset_t oldset, newset;
|
sigset_t oldset, newset;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
pthread_attr_init(&attr);
|
if (pthread_attr_init(&attr) != 0)
|
||||||
|
{
|
||||||
|
return EINA_FALSE;
|
||||||
|
}
|
||||||
if (affinity >= 0)
|
if (affinity >= 0)
|
||||||
{
|
{
|
||||||
#ifdef EINA_HAVE_PTHREAD_AFFINITY
|
#ifdef EINA_HAVE_PTHREAD_AFFINITY
|
||||||
|
|
Loading…
Reference in New Issue