fixed build without thread support
This commit was SVN r29145.
Этот коммит содержится в:
родитель
c53b0890cf
Коммит
50a3c01a0f
@ -11,6 +11,7 @@
|
||||
#include "opal_config.h"
|
||||
#include "opal/constants.h"
|
||||
|
||||
#include <time.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#ifdef HAVE_LIMITS_H
|
||||
|
@ -30,6 +30,8 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#include "opal/class/opal_list.h"
|
||||
#include "opal/class/opal_pointer_array.h"
|
||||
|
||||
|
@ -37,14 +37,14 @@ OBJ_CLASS_INSTANCE(opal_thread_t,
|
||||
static void opal_thread_construct(opal_thread_t *t)
|
||||
{
|
||||
t->t_run = 0;
|
||||
#ifdef OPAL_HAVE_POSIX_THREADS
|
||||
#if OPAL_HAVE_POSIX_THREADS
|
||||
t->t_handle = (pthread_t) -1;
|
||||
#elif OPAL_HAVE_SOLARIS_THREADS
|
||||
t->t_handle = (thread_t) -1;
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef OPAL_HAVE_POSIX_THREADS
|
||||
#if OPAL_HAVE_POSIX_THREADS
|
||||
|
||||
/************************************************************************
|
||||
* POSIX threads
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user