xtd 0.2.0
Loading...
Searching...
No Matches
registered_wait_handle.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "wait_handle.hpp"
6#include "../object.hpp"
7
9namespace xtd {
11 namespace threading {
13 class thread_pool;
15
30 friend class thread_pool;
31 public:
33
39 bool unregister();
45 bool unregister(wait_handle& wait_obbject);
47
48 private:
49 intptr item_ = 0;
50 };
51 }
52}
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:42
A synchronization primitive that can also be used for interprocess synchronization.
Definition registered_wait_handle.hpp:29
bool unregister(wait_handle &wait_obbject)
Cancels a registered wait operation issued by the xtd::threading::thread_pool::register_wait_for_sing...
bool unregister()
Cancels a registered wait operation issued by the xtd::threading::thread_pool::register_wait_for_sing...
Provides a pool of threads that can be used to execute tasks, post work items, process asynchronous I...
Definition thread_pool.hpp:53
Encapsulates operating system specific objects that wait for exclusive access to shared resources.
Definition wait_handle.hpp:52
#define core_export_
Define shared library export.
Definition core_export.hpp:13
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::threading::wait_handle exception.