/builddir/build/BUILD/globus_common-17.1/test/thread_test.c File Reference

Globus Thread Test. More...

#include "globus_common.h"
#include "globus_test_tap.h"
#include <stdio.h>
#include "globus_preload.h"

Functions

int thread_test (int np, int nc, int ni)
 Thread Consumer / Producer Test.


Detailed Description

Globus Thread Test.


Function Documentation

int thread_test ( int  np,
int  nc,
int  ni 
)

Thread Consumer / Producer Test.

Test:
The thread_test creates a p producer threads and c consumer threads, and then has the producers (combined) create n pieces of data to be consumed by the consumer threads.
This test exercises globus_mutex_lock(), globus_mutex_unlock(), globus_cond_wait(), globus_cond_signal(), and globus_cond_broadcast()


Generated on 17 Mar 2017 for globus_common by  doxygen 1.4.7