Пример #1
0
    bool recursive_mutex::timed_lock(::boost::system_time const& wait_until)
    {
        threads::thread_id_type const current_thread_id = threads::get_self_id();

        return try_recursive_lock(current_thread_id) ||
            try_timed_lock(current_thread_id, wait_until);
    }
Пример #2
0
 bool timed_lock(::pdalboost::system_time const& target)
 {
     long const current_thread_id=win32::GetCurrentThreadId();
     return try_recursive_lock(current_thread_id) || try_timed_lock(current_thread_id,target);
 }
 bool timed_lock(Duration const& target)
 {
     long const current_thread_id=boost::winapi::GetCurrentThreadId();
     return try_recursive_lock(current_thread_id) || try_timed_lock(current_thread_id,target);
 }