]> Chaos Git - corbenik/ctrulib.git/commitdiff
Add __sync_get_arbiter.
authorSteven Smith <Steveice10@gmail.com>
Tue, 29 Dec 2015 04:46:04 +0000 (20:46 -0800)
committerSteven Smith <Steveice10@gmail.com>
Tue, 29 Dec 2015 04:46:04 +0000 (20:46 -0800)
libctru/include/3ds/synchronization.h
libctru/source/synchronization.c

index d6dc06805988697b1a225d41ae805a6e8dd1581e..030774525ef1f9ebed44a68f5b549bea47cbee0d 100644 (file)
@@ -59,6 +59,12 @@ static inline bool __strex(s32* addr, s32 val)
 /// Performs an atomic swap operation.
 #define AtomicSwap(ptr, value) __atomic_exchange_n((u32*)(ptr), (value), __ATOMIC_SEQ_CST)
 
+/**
+ * @brief Retrieves the synchronization subsystem's address arbiter handle.
+ * @return The synchronization subsystem's address arbiter handle.
+ */
+Handle __sync_get_arbiter(void);
+
 /**
  * @brief Initializes a light lock.
  * @param lock Pointer to the lock.
index 0dca7247a1f0478431a7f1780c1c748f6bef6ca2..ecbae16249951cd30d259fd2e6354262dcd8a86b 100644 (file)
@@ -16,6 +16,11 @@ void __sync_fini(void)
                svcCloseHandle(arbiter);
 }
 
+Handle __sync_get_arbiter(void)
+{
+       return arbiter;
+}
+
 void LightLock_Init(LightLock* lock)
 {
        do