This commit is contained in:
Juan Antonio Hernández Cánovas 2018-08-25 01:17:28 +02:00
parent 87018643e8
commit 3903f7a3e3
2 changed files with 3 additions and 2 deletions

View File

@ -117,7 +117,7 @@ void* listPeekFront(List* l);
* @param item A pointer to something you want to insert
*/
static inline void listPushBack(List* l, void* item) {
listInsertLast(List* l, void* item);
listInsertLast(l, item);
}
/**

View File

@ -1,4 +1,5 @@
#include "kernel/barrier.h"
#include "../internal.h"
void barrierInit(Barrier* b) {
mutexInit(&b->mutex);
@ -26,7 +27,7 @@ void barrierUnregister(Barrier* b, Thread* thread) {
listDelete(&b->threads_registered, (void*)thread);
}
void barrierWait(Barrier* b, Thread* thread) {
void barrierWait(Barrier* b) {
Thread* thread = getThreadVars()->thread_ptr;
if(!listIsInserted(&b->threads_registered, (void*)thread)) {
return;