00001
00002
00003
00004
00005
00006
00007
00008 #ifndef __BASELINE_LOCK_H_Included__
00009 #define __BASELINE_LOCK_H_Included__
00010
00011 #include "atomic_util.h"
00012 #include "system_abstraction.h"
00013
00014
00015
00016
00017
00018 class BASELINERWLock
00019 {
00020
00021
00022
00023
00024 inline void yield()
00025 {
00026 thread_yield();
00027 }
00028
00029 public:
00030 static const char *name() { return "BASELINE_Lock"; }
00031
00032
00033
00034
00035 volatile void enter_read(void)
00036 {
00037 }
00038
00039
00040
00041
00042 volatile void leave_read(void)
00043 {
00044 }
00045
00046
00047
00048
00049 volatile void enter_write(void)
00050 {
00051 }
00052
00053
00054
00055
00056 volatile void leave_write(void)
00057 {
00058 }
00059 };
00060
00061 #endif
00062
00063
00064