Table of Contents


future_init - initialize the future library


#include <qthread.h>
#include <qthread/futurelib.h>

future_init (int vp_per_loc);


Initializes the futurelib environment so that threads may create future computations.

The argument, vp_per_loc, specifies how many futures may be active on each location at a time. This does not include qthreads which were not created as futures since futurelib is not aware of how many of these exists. Active threads include all created futures which are currently running and have not explicitly yielded. Inactive futures are not limited, as this could easily lead to deadlock.

See Also

future_join_all(3) , future_init(3) , future_exit(3) , future_yield(3) , future_acquire(3)

Table of Contents