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