Pull upstream changes from TELY UI
This commit is contained in:
1 parent
7147ad52a2
commit
d5c98d5288
20 files changed
+17900
-10682
No files matched your search
+15
-15
@@ -1,5 +1,5 @@
|
||||
#if !defined(DN_OS_POSIX_H)
|
||||
#define DN_OS_POSIX_H
|
||||
#if !defined(DN_Os_POSIX_H)
|
||||
#define DN_Os_POSIX_H
|
||||
|
||||
#if defined(_CLANGD)
|
||||
#include "../dn.h"
|
||||
@@ -8,7 +8,7 @@
|
||||
#include <pthread.h>
|
||||
#include <semaphore.h>
|
||||
|
||||
struct DN_OSPosixProcSelfStatus
|
||||
struct DN_OsPosixProcSelfStatus
|
||||
{
|
||||
char name[64];
|
||||
DN_U8 name_size;
|
||||
@@ -35,14 +35,14 @@ struct DN_OSPosixProcSelfStatus
|
||||
// unlocking, or destroying the object is undefined. [...] The effect of
|
||||
// referring to a copy of the object when locking, unlocking, or destroying it
|
||||
// is undefined.
|
||||
enum DN_OSPosixSyncPrimitiveType
|
||||
enum DN_OsPosixSyncPrimitiveType
|
||||
{
|
||||
DN_OSPosixSyncPrimitiveType_Semaphore,
|
||||
DN_OSPosixSyncPrimitiveType_Mutex,
|
||||
DN_OSPosixSyncPrimitiveType_ConditionVariable,
|
||||
DN_OsPosixSyncPrimitiveType_Semaphore,
|
||||
DN_OsPosixSyncPrimitiveType_Mutex,
|
||||
DN_OsPosixSyncPrimitiveType_ConditionVariable,
|
||||
};
|
||||
|
||||
struct DN_OSPosixSyncPrimitive
|
||||
struct DN_OsPosixSyncPrimitive
|
||||
{
|
||||
union
|
||||
{
|
||||
@@ -51,17 +51,17 @@ struct DN_OSPosixSyncPrimitive
|
||||
pthread_cond_t cv;
|
||||
pthread_barrier_t barrier;
|
||||
};
|
||||
DN_OSPosixSyncPrimitive *next;
|
||||
DN_OsPosixSyncPrimitive *next;
|
||||
};
|
||||
|
||||
struct DN_OSPosixCore
|
||||
struct DN_OsPosixCore
|
||||
{
|
||||
DN_OSPosixSyncPrimitive *sync_primitive_free_list;
|
||||
DN_OsPosixSyncPrimitive *sync_primitive_free_list;
|
||||
pthread_mutex_t sync_primitive_free_list_mutex;
|
||||
bool clock_monotonic_raw;
|
||||
};
|
||||
|
||||
DN_API void DN_OS_PosixInit (DN_OSPosixCore *posix);
|
||||
DN_API void DN_OS_PosixThreadSetName (DN_Str8 name);
|
||||
DN_API DN_OSPosixProcSelfStatus DN_OS_PosixProcSelfStatus();
|
||||
#endif // !defined(DN_OS_POSIX_H)
|
||||
DN_API void DN_Os_PosixInit (DN_OsPosixCore *posix);
|
||||
DN_API void DN_Os_PosixThreadSetName (DN_Str8 name);
|
||||
DN_API DN_OsPosixProcSelfStatus DN_Os_PosixProcSelfStatus();
|
||||
#endif // !defined(DN_Os_POSIX_H)
|
||||
Reference in new issue
Block a user