PFUNC
1.0
|
#include <pfunc/predicate.hpp>
Public Types | |
typedef bool | result_type |
typedef ValueType * | value_type |
Public Member Functions | |
regular_predicate_pair (value_type previous_task=NULL) | |
bool | own_pred (value_type current_task) const |
bool | steal_pred (value_type current_task) const |
Predicate type for getting tasks out at a "regular" scheduling point. ValueType is task and PolicyName can be anything.
typedef bool pfunc::detail::regular_predicate_pair< PolicyName, ValueType >::result_type |
typedef ValueType* pfunc::detail::regular_predicate_pair< PolicyName, ValueType >::value_type |
pfunc::detail::regular_predicate_pair< PolicyName, ValueType >::regular_predicate_pair | ( | value_type | previous_task = NULL | ) | [inline] |
Initialize the previous task.
bool pfunc::detail::regular_predicate_pair< PolicyName, ValueType >::own_pred | ( | value_type | current_task | ) | const [inline] |
Can this task be given to the calling thread? The answer is YES, always YES, by default. If you like to change it, specialize!
[in] | arg | Pointer to the task that is being chosen. |
bool pfunc::detail::regular_predicate_pair< PolicyName, ValueType >::steal_pred | ( | value_type | current_task | ) | const [inline] |
Same as own_pred ()
[in] | arg | Pointer to the task that is being chosen. |