00001 // AUTOMATICALLY GENERATED -- DO NOT EDIT! -*- c++ -*- 00002 00003 #ifndef thread_lock_i_h 00004 #define thread_lock_i_h 00005 #include "lock_guard.h" 00006 #include "cpu_lock.h" 00007 #include "thread_state.h" 00008 00009 // 00010 // IMPLEMENTATION of inline functions follows 00011 // 00012 00013 00014 00019 inline Context * const 00020 Thread_lock::context() const 00021 { 00022 // We could have saved our context in our constructor, but computing 00023 // it this way is easier and saves space. We can do this as we know 00024 // that thread_locks are always embedded in their corresponding 00025 // context. 00026 return context_of (this); 00027 } 00028 00029 #endif // thread_lock_i_h