PFUNC  1.0
Public Types | Public Member Functions
pfunc::detail::waiting_predicate_pair< PolicyName, ValueType > Struct Template Reference

#include <pfunc/predicate.hpp>

List of all members.

Public Types

typedef bool result_type
typedef ValueType * value_type

Public Member Functions

 waiting_predicate_pair (value_type previous_task=NULL)
bool own_pred (value_type current_task) const
bool steal_pred (value_type current_task) const

Detailed Description

template<typename PolicyName, typename ValueType>
struct pfunc::detail::waiting_predicate_pair< PolicyName, ValueType >

Predicate type for getting tasks out at a "waiting" scheduling point.


Member Typedef Documentation

template<typename PolicyName , typename ValueType >
typedef bool pfunc::detail::waiting_predicate_pair< PolicyName, ValueType >::result_type
template<typename PolicyName , typename ValueType >
typedef ValueType* pfunc::detail::waiting_predicate_pair< PolicyName, ValueType >::value_type

Constructor & Destructor Documentation

template<typename PolicyName , typename ValueType >
pfunc::detail::waiting_predicate_pair< PolicyName, ValueType >::waiting_predicate_pair ( value_type  previous_task = NULL) [inline]

Initialize the previous task.


Member Function Documentation

template<typename PolicyName , typename ValueType >
bool pfunc::detail::waiting_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!

Parameters:
[in]current_taskPointer to the task that is being chosen.
template<typename PolicyName , typename ValueType >
bool pfunc::detail::waiting_predicate_pair< PolicyName, ValueType >::steal_pred ( value_type  current_task) const [inline]

Same as own_pred ()

Parameters:
[in]current_taskPointer to the task that is being chosen.

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