Skip to content
/ syncme Public

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.

Notifications You must be signed in to change notification settings

efmsoft/syncme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 <Syncme/Sync.h>

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

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

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published