Skip to content
Snippets Groups Projects
Commit 98a90fb7 authored by Avi Kivity's avatar Avi Kivity
Browse files

mutex: stub implementation

No threading yet, so no real locking
parent eda70a5c
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@ drivers += elf.o
objects = exceptions.o
objects += entry.o
objects += mutex.o
libc = libc/string/strcmp.o
......
mutex.cc 0 → 100644
#include "mutex.hh"
void mutex::lock()
{
// dummy - no threads yet
}
bool mutex::try_lock()
{
// dummy - no threads yet
return true;
}
void mutex::unlock()
{
// dummy - no threads yet
}
mutex.hh 0 → 100644
#ifndef MUTEX_HH
#define MUTEX_HH
class mutex {
public:
void lock();
bool try_lock();
void unlock();
};
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment