mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
Added locking to id pool allocation and free.
This commit is contained in:
@@ -2,8 +2,10 @@
|
||||
#define __IDPOOL_H__
|
||||
|
||||
#include <l4/lib/bit.h>
|
||||
#include <l4/lib/spinlock.h>
|
||||
|
||||
struct id_pool {
|
||||
struct spinlock lock;
|
||||
int nwords;
|
||||
u32 bitmap[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user