An open API service indexing awesome lists of open source software.

https://github.com/efmsoft/syncme

A cross-platform implementation of such synchronization objects as Notification / Synchronization Events, Waitable Timers, Socket Event, Thread, as well as functions for waiting for signaled state. The wait functions are analogues of WaitForSingleObject and WaitForMultileObjects used on Windows. the last one can wait for objects of different types.
https://github.com/efmsoft/syncme

semaphore socket-event synchronization-primitives thread-pool timer waitable-timer

Last synced: 3 months ago
JSON representation

A cross-platform implementation of such synchronization objects as Notification / Synchronization Events, Waitable Timers, Socket Event, Thread, as well as functions for waiting for signaled state. The wait functions are analogues of WaitForSingleObject and WaitForMultileObjects used on Windows. the last one can wait for objects of different types.

Awesome Lists containing this project

README

          

# Syncme library

This library contains a cross-platform implementation of such synchronization objects as Notification Event, Synchronization Event, Waitable Timer, Socket Event, Thread, as well as functions for waiting for the transition of objects to a signaled state. To wait for the signaled state of objects, analogues of the functions used in Windows are used - WaitForSingleObject and WaitForMultipleObjects.

```
#include

using namespace Syncme;
...
HEvent timer = CreateManualResetTimer();
SetWaitableTimer(htimer, 1500, 0, nullptr);

auto rc = WaitForSingleObject(timer, FOREVER);
assert(rc == WAIT_RESULT::OBJECT_0);
```