• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

P_Thread.h

Go to the documentation of this file.
00001 /** @file
00002 
00003   A brief file description
00004 
00005   @section license License
00006 
00007   Licensed to the Apache Software Foundation (ASF) under one
00008   or more contributor license agreements.  See the NOTICE file
00009   distributed with this work for additional information
00010   regarding copyright ownership.  The ASF licenses this file
00011   to you under the Apache License, Version 2.0 (the
00012   "License"); you may not use this file except in compliance
00013   with the License.  You may obtain a copy of the License at
00014 
00015       http://www.apache.org/licenses/LICENSE-2.0
00016 
00017   Unless required by applicable law or agreed to in writing, software
00018   distributed under the License is distributed on an "AS IS" BASIS,
00019   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00020   See the License for the specific language governing permissions and
00021   limitations under the License.
00022  */
00023 
00024 /****************************************************************************
00025 
00026   Basic Threads
00027 
00028 
00029 
00030 ****************************************************************************/
00031 #ifndef _P_Thread_h_
00032 #define _P_Thread_h_
00033 
00034 #include "I_Thread.h"
00035 
00036   ///////////////////////////////////////////////
00037   // Common Interface impl                     //
00038   ///////////////////////////////////////////////
00039 TS_INLINE
00040 Thread::~
00041 Thread()
00042 {
00043 }
00044 
00045 TS_INLINE void
00046 Thread::set_specific()
00047 {
00048   ink_thread_setspecific(Thread::thread_data_key, this);
00049 }
00050 
00051 TS_INLINE Thread *
00052 this_thread()
00053 {
00054   return (Thread *) ink_thread_getspecific(Thread::thread_data_key);
00055 }
00056 
00057 TS_INLINE ink_hrtime
00058 ink_get_hrtime()
00059 {
00060   return Thread::cur_time;
00061 }
00062 
00063 TS_INLINE ink_hrtime
00064 ink_get_based_hrtime()
00065 {
00066   return Thread::cur_time;
00067 }
00068 
00069 #endif //_P_Thread_h_

Generated by  doxygen 1.7.1