xtd 0.2.0
Loading...
Searching...
No Matches
registered_wait_handle.h
Go to the documentation of this file.
1
4#pragma once
5#include "wait_handle.h"
6#include "../object.h"
7
9namespace xtd {
11 namespace threading {
13 class thread_pool;
15
28 friend class thread_pool;
29 public:
31
37 bool unregister();
43 bool unregister(wait_handle& wait_obbject);
45
46 private:
47 intptr item_ = 0;
48 };
49 }
50}
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:32
A synchronization primitive that can also be used for interprocess synchronization.
Definition registered_wait_handle.h:27
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.h:50
Encapsulates operating system specific objects that wait for exclusive access to shared resources.
Definition wait_handle.h:50
#define core_export_
Define shared library export.
Definition core_export.h:13
intmax_t intptr
Represent a pointer or a handle.
Definition types.h:153
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::threading::wait_handle exception.