Data Structures | Defines | Functions

Ptr.h File Reference

A brief file description. More...

#include "ink_atomic.h"
Include dependency graph for Ptr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  NonAtomicRefCountObj
class  NonAtomicPtr< T >
struct  ForceVFPTToTop
class  RefCountObj
class  Ptr< T >

Defines

#define NONATOMIC_REF_COUNT_OBJ_REFCOUNT_INC(_x)   (_x)->refcount_inc()
#define NONATOMIC_REF_COUNT_OBJ_REFCOUNT_DEC(_x)   (_x)->refcount_dec()
#define REF_COUNT_OBJ_REFCOUNT_INC(_x)   (_x)->refcount_inc()
#define REF_COUNT_OBJ_REFCOUNT_DEC(_x)   (_x)->refcount_dec()

Functions

template<typename T >
NonAtomicPtr< T > make_nonatomic_ptr (T *p)
template<typename T >
Ptr< T > make_ptr (T *p)

Detailed Description

A brief file description.

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file Ptr.h.


Define Documentation

#define NONATOMIC_REF_COUNT_OBJ_REFCOUNT_DEC (   _x  )     (_x)->refcount_dec()

Definition at line 92 of file Ptr.h.

#define NONATOMIC_REF_COUNT_OBJ_REFCOUNT_INC (   _x  )     (_x)->refcount_inc()

Definition at line 84 of file Ptr.h.

#define REF_COUNT_OBJ_REFCOUNT_DEC (   _x  )     (_x)->refcount_dec()
#define REF_COUNT_OBJ_REFCOUNT_INC (   _x  )     (_x)->refcount_inc()

Definition at line 282 of file Ptr.h.

Referenced by LogObjectManager::transfer_objects().


Function Documentation

template<typename T >
NonAtomicPtr<T> make_nonatomic_ptr ( T *  p  ) 

Definition at line 157 of file Ptr.h.

template<typename T >
Ptr<T> make_ptr ( T *  p  )