aboutsummaryrefslogtreecommitdiff
path: root/zencore/thread.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
| * Added a zen::CreateProc() function for spawning child processesMartin Ridgers2021-11-161-0/+119
| |
| * Windows compile fixMartin Ridgers2021-11-111-1/+1
| |
| * Implement NamedEvent on POSIX using Unix-domain socketsMartin Ridgers2021-11-111-3/+80
| |
| * Removed unused u8string_view NamedEvent constructorMartin Ridgers2021-11-111-11/+0
| |
| * NamedEvent is no longer an Event-type object.Martin Ridgers2021-11-111-2/+39
| | | | | | | | | | | | | | Platforms other than Windows do not really have a named event-like primitive or ones that are close are fallible if a process hard-terminates. Separating from Event more clearly conveys the use of NamedEvent objects; to synchronise two processes.
| * Check if an event is already set before waiting on itMartin Ridgers2021-11-111-1/+12
| |
| * Windows unreachable code compile fixMartin Ridgers2021-11-091-2/+0
| |
| * Implemented ProcessHandle::Wait() for LinuxMartin Ridgers2021-11-091-3/+32
| |
| * ProcessHandle::Reset() for LinuxMartin Ridgers2021-11-091-0/+3
| |
| * Implemented ProcessHandle::Terminate() for LinuxMartin Ridgers2021-11-091-3/+15
| |
| * Implemented ProcessHandle::IsRunning() for LinuxMartin Ridgers2021-11-091-1/+12
| |
| * Implemented ProcessHandle::Initialize(Pid) for LinuxMartin Ridgers2021-11-091-1/+10
| |
| * Moved "using namespace" statement into the scope it applies toMartin Ridgers2021-11-091-1/+1
| |
| * Only implement ProcessHandle::Initialize(void*) on WindowsMartin Ridgers2021-11-091-4/+2
| |
| * Moved the use of INVALID_HANDLE_VALUE out of ProcessHandle::Reset()Martin Ridgers2021-11-091-1/+7
| |
| * Event for POSIX using std:: primitivesMartin Ridgers2021-11-021-5/+64
| |
| * More granular if-defs around platform-specific classesMartin Ridgers2021-11-021-2/+12
| |
| * Cast to int() on the off chance that pid_t isn't oneMartin Ridgers2021-10-251-1/+1
| |
| * Added a zen::GetCurrentThreadId()Martin Ridgers2021-10-251-0/+10
| |
| * pthread implementation for naming a threadMartin Ridgers2021-10-251-0/+3
| |
| * Merged mainMartin Ridgers2021-10-161-1/+4
| |\ | |/ |/|
| * Merged mainMartin Ridgers2021-10-151-0/+55
| |\
| * | Added some tests for pid-related functionsMartin Ridgers2021-10-111-0/+12
| | |
| * | Implemented IsProcessRunning() for LinuxMartin Ridgers2021-09-291-1/+3
| | |
* | | zencore: Enabled MSC warning 4668 to get warnings when preprocessor macros ↵Stefan Boberg2021-10-151-1/+4
| |/ |/| | | | | | | | | | | | | are used without an explicit definition Also fixed up various code to compile with this, by using ZEN_THIRD_PARTY_INCLUDES_START/ZEN_THIRD_PARTY_INCLUDES_END macros Removed prewindows.h/postwindows.h since they are no longer to be used due to the above
* | asio HTTP implementation (#23)Stefan Boberg2021-10-141-0/+55
|/ | | asio-based HTTP implementation
* Merged latest from mainStefan Boberg2021-09-271-3/+3
|\
* | Compile out ProcessMonitor's methods on non-Windows for nowMartin Ridgers2021-09-221-0/+4
| |
* | Compile out ProcessHandle's methods on non-Windows for nowMartin Ridgers2021-09-221-0/+4
| |
* | Compile out Event methods on non-Windows platforms for nowMartin Ridgers2021-09-221-0/+4
| |
* | Merged main into linux-macMartin Ridgers2021-09-211-19/+93
|\|
| * Changed so Windows also uses the portable std::mutex implementation and ↵Stefan Boberg2021-09-191-16/+0
| | | | | | | | reworked some code which would not compile after the change
| * IsProcessRunning now throws if it fails the function fails to get a handle ↵Stefan Boberg2021-09-171-2/+18
| | | | | | | | to the process due to an error (unless it is because the process does not exist)
| * Removed WindowsException from public headersStefan Boberg2021-09-171-1/+2
| |
| * clang-formatStefan Boberg2021-09-161-2/+2
| |
| * Added ProcessMonitor class, which is used to monitor a number of sponsor ↵Stefan Boberg2021-09-161-0/+75
| | | | | | | | processes, to control Zen instance lifetime
* | Added some lawns to aid orientation within the fileMartin Ridgers2021-09-161-0/+8
|/
* zen::Sleep() for LinuxMartin Ridgers2021-09-151-0/+4
|
* GetCurrentProcess() for non-WindowsMartin Ridgers2021-09-151-0/+6
|
* Implemented RwLock on non-Windows platforms using std::shared_mutexMartin Ridgers2021-09-151-1/+20
|
* Removed unused 'thread' includeMartin Ridgers2021-09-151-1/+0
|
* Added ProcessHandle::Reset and added some diagnostics for ↵Stefan Boberg2021-08-091-6/+21
| | | | ProcessHandle::Initialize for the case when OpenProcess fails
* Added SYNCHRONIZE to ProcessHandle::InitializeStefan Boberg2021-08-091-1/+1
|
* Added IsProcessRunning()/GetCurrentProcessId() helpersStefan Boberg2021-08-091-0/+21
|
* zen::Process -> zen::ProcessHandleStefan Boberg2021-08-061-8/+8
|
* Added basic NamedMutex implementationStefan Boberg2021-08-051-0/+45
|
* Cleaned up exception handlingStefan Boberg2021-05-211-1/+3
| | | | We now use std::system_error where possible to report Win32 system errors. We still have WindowsException for general HRESULT based errors but we should phase it out where possible
* Adding zenservice codeStefan Boberg2021-05-111-0/+192