#include <xtd/threading/countdown_event>
#include <xtd/threading/thread>
#include <xtd/console>
#include <xtd/startup>
namespace monitor_lock_example {
class program {
public:
static void main() {
auto thread_proc = [&] {
};
for (
auto i = 0;
i < 5; ++
i)
}
};
}
startup_(monitor_lock_example::program::main);
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
Represents a synchronization primitive that is signaled when its count reaches zero.
Definition countdown_event.hpp:30
void wait()
Blocks the current thread until the xtd::threading::countdown_event is set.
bool signal()
Registers a signal with the xtd::threading::countdown_event, decrementing the value of xtd::threading...
static thread & current_thread() noexcept
Gets the currently running thread.
static thread start_new(const xtd::threading::thread_start &start)
Create and immedialtely start a xtd::threading::thread with specified method.
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.hpp:168
@ i
The I key.
Definition console_key.hpp:104
The xtd::threading namespace provides classes and interfaces that enable multithreaded programming....
Definition abandoned_mutex_exception.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8