Boost logo

Boost Users :

Subject: [Boost-users] query regarding mutex
From: Abbhishek Misra (abhishekfishy2000_at_[hidden])
Date: 2010-07-26 13:04:27


Hello All,

This is how mutex class looks like

#include <boost/thread/mutex.hpp>
class mutex:
    boost::noncopyable
{
public:
    mutex();
    ~mutex();
    void lock();
    bool try_lock();
    void unlock();
    typedef platform-specific-type native_handle_type;
    native_handle_type native_handle();
    typedef unique_lock<mutex> scoped_lock;

    typedef unspecified-type scoped_try_lock;

};

Please help me figure out what purpose does 'unspecified-type' serve below.

typedef unspecified-type scoped_try_lock;

as I understand typedef type_a name_a ; enables name_a to be used
instead of type_a
what does unspecified-type stand for ?
and how does one use it ?

regards
Abhishek


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net