use right macro for threads
This commit was SVN r4196.
Этот коммит содержится в:
родитель
f4b135a829
Коммит
e724142970
@ -149,7 +149,7 @@ static void *thread_main(void *arg)
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
int c;
|
||||
#if HAVE_PTHREAD_H
|
||||
#if OMPI_HAVE_POSIX_THREADS
|
||||
int tid;
|
||||
pthread_t *th;
|
||||
#endif
|
||||
@ -335,7 +335,7 @@ int main(int argc, char *argv[])
|
||||
valint = 0;
|
||||
|
||||
/* -- create the thread set -- */
|
||||
#if HAVE_PTHREAD_H
|
||||
#if OMPI_HAVE_POSIX_THREADS
|
||||
th = (pthread_t *) malloc(nthreads * sizeof(pthread_t));
|
||||
if (!th) {
|
||||
perror("malloc");
|
||||
|
@ -45,7 +45,7 @@ static void* atomic_spinlock_start(void* arg)
|
||||
int
|
||||
atomic_spinlock_test_th(ompi_lock_t *lock, int count, int id, int thr_count)
|
||||
{
|
||||
#if HAVE_PTHREAD_H
|
||||
#if OMPI_HAVE_POSIX_THREADS
|
||||
pthread_t *th;
|
||||
int tid, ret = 0;
|
||||
struct start_info *data;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user