mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-05 10:52:15 +02:00
whoops
This commit is contained in:
parent
87018643e8
commit
3903f7a3e3
@ -117,7 +117,7 @@ void* listPeekFront(List* l);
|
|||||||
* @param item A pointer to something you want to insert
|
* @param item A pointer to something you want to insert
|
||||||
*/
|
*/
|
||||||
static inline void listPushBack(List* l, void* item) {
|
static inline void listPushBack(List* l, void* item) {
|
||||||
listInsertLast(List* l, void* item);
|
listInsertLast(l, item);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include "kernel/barrier.h"
|
#include "kernel/barrier.h"
|
||||||
|
#include "../internal.h"
|
||||||
|
|
||||||
void barrierInit(Barrier* b) {
|
void barrierInit(Barrier* b) {
|
||||||
mutexInit(&b->mutex);
|
mutexInit(&b->mutex);
|
||||||
@ -26,7 +27,7 @@ void barrierUnregister(Barrier* b, Thread* thread) {
|
|||||||
listDelete(&b->threads_registered, (void*)thread);
|
listDelete(&b->threads_registered, (void*)thread);
|
||||||
}
|
}
|
||||||
|
|
||||||
void barrierWait(Barrier* b, Thread* thread) {
|
void barrierWait(Barrier* b) {
|
||||||
Thread* thread = getThreadVars()->thread_ptr;
|
Thread* thread = getThreadVars()->thread_ptr;
|
||||||
if(!listIsInserted(&b->threads_registered, (void*)thread)) {
|
if(!listIsInserted(&b->threads_registered, (void*)thread)) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user