Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

space_index_util.h

Go to the documentation of this file.
00001 // AUTOMATICALLY GENERATED -- DO NOT EDIT!         -*- c++ -*-
00002 
00003 #ifndef space_index_util_h
00004 #define space_index_util_h
00005 
00006 #include "space_index.h"
00007 
00008 //
00009 // INTERFACE definition follows 
00010 //
00011 
00012 
00013 class Space_index_util
00014 {
00015 
00016 public:  
00017   static inline Space_index chief(Space_index task);
00018 };
00019 
00020 //
00021 // IMPLEMENTATION includes follow (for use by inline functions)
00022 //
00023 
00024 
00025 #include "lock_guard.h"
00026 #include "cpu_lock.h"
00027 #include "space.h"
00028 
00029 //
00030 // IMPLEMENTATION of inline functions (and needed classes)
00031 //
00032 
00033 
00034 
00035 
00036 inline Space_index 
00037 Space_index_util::chief(Space_index task)
00038 {
00039   Lock_guard<Cpu_lock> guard (&cpu_lock);
00040 
00041   Space* s = task.lookup();
00042 
00043   if (s)
00044     return s->chief();
00045 
00046   return task.chief();
00047 }
00048 
00049 #endif // space_index_util_h

Generated on Mon Sep 26 14:20:12 2005 for Fiasco by  doxygen 1.4.2