This commit is contained in:
Ivan
2022-04-05 11:42:28 +03:00
commit 6dc0eb0fcf
5565 changed files with 1200500 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#pragma once
#include <memory>
#include <string>
namespace pangolin
{
class SemaphoreInterface
{
public:
virtual ~SemaphoreInterface() {
}
virtual bool tryAcquire() = 0;
virtual void acquire() = 0;
virtual void release() = 0;
};
std::shared_ptr<SemaphoreInterface> create_named_semaphore(const std::string& name,
unsigned int value);
std::shared_ptr<SemaphoreInterface> open_named_semaphore(const std::string& name);
}