mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-11-29 12:13:12 +03:00
14 lines
169 B
C
14 lines
169 B
C
|
|
||
|
#include <types.h>
|
||
|
#include <spinlock.h>
|
||
|
#include <core.h>
|
||
|
|
||
|
#ifdef USE_SMP
|
||
|
|
||
|
void spinlock_initialize(spinlock_t *sl)
|
||
|
{
|
||
|
atomic_set(&sl->val, 0);
|
||
|
}
|
||
|
|
||
|
#endif
|