MPSolve 3.2.1
Loading...
Searching...
No Matches
mps_thread_job_queue Struct Reference

Struct holding a job queue. More...

#include <threading.h>

Public Attributes

unsigned int max_iter
 Maximum number of iteration to perform before raising an exeption.
 
unsigned int n_roots
 Number of the roots of this problem (i.e. degree of the polynomial).
 
int iter
 Iterations that is being performed right now.
 
mps_rootroot
 Next root to iterate on.
 
mps_cluster_itemcluster_item
 Element of s->clusterization that we are iterating on.
 
pthread_mutex_t mutex
 Internal mutex of the queue used to guarantee exclusive access.
 

Detailed Description

Struct holding a job queue.

This structure can be used to coordinate the work in the different thread during multithread computation in MPSolve.

It must be allocated using mps_thread_job_queue_new() and freed with mps_thread_job_queue_free(). A new job can be requested with the routine mps_thread_job_queue_next().

See also
mps_thread_job_queue_next()

The documentation for this struct was generated from the following file: