xtd 0.2.0
registered_wait_handle.h
Go to the documentation of this file.
1 #pragma once
5 #include "wait_handle.h"
6 #include "../object.h"
7 
9 namespace xtd {
11  namespace threading {
13  class thread_pool;
15 
27  class core_export_ registered_wait_handle final : public object {
28  friend class thread_pool;
29  public:
31 
37  bool unregister();
43  bool unregister(wait_handle& wait_obbject);
44 
45  private:
46  intptr item_ = 0;
47  };
48  }
49 }
intmax_t intptr
Represent a pointer or a handle.
Definition: types.h:151
Contains xtd::threading::wait_handle exception.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Provides a pool of threads that can be used to execute tasks, post work items, process asynchronous I...
Definition: thread_pool.h:50
A synchronization primitive that can also be used for interprocess synchronization.
Definition: registered_wait_handle.h:27
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
Encapsulates operating system specific objects that wait for exclusive access to shared resources...
Definition: wait_handle.h:48