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
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.h:42
A synchronization primitive that can also be used for interprocess synchronization.
Definition registered_wait_handle.h: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.h:53
Encapsulates operating system specific objects that wait for exclusive access to shared resources.
Definition wait_handle.h:52
#define core_export_
Define shared library export.
Definition core_export.h:13
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.h:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::threading::wait_handle exception.