Boost logo

Boost :

Subject: [boost] [threadpool] determining whether a Threadpool type uses a priority/attribute
From: Stjepan Rajko (stipe_at_[hidden])
Date: 2008-09-06 16:00:53


Suppose I have a Threadpool type, which could for example be either of
the following:

            tp::unbounded_channel< tp::priority< int > >


            tp::unbounded_channel< tp::fifo >

How do I find out whether Threadpool involves a priority/attribute,
and what the type of it is? For example, I am looking for something
that would give me:

// returns something like mpl::true_ for the first case
// returns something like mpl::false_ for the second case

// returns int for the first case

Thanks in advance,


Boost list run by bdawes at, gregod at, cpdaniel at, john at