Added Semaphore and Mutex

This commit is contained in:
Simon Lübeß
2021-03-03 18:57:42 +01:00
parent 9d52f77b43
commit 4b032d2c7e
6 changed files with 194 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
namespace GlitchyEngine.Threading
{
public enum LockResult
{
/**
* The lock was released by the owning thread.
*/
Released,
/**
* The owning thread terminated without releasing the lock.
*/
Abandoned,
/**
* The lock function timed out.
*/
Timeout,
/**
* The function has failed.
*/
Failed,
Unknown
}
}