Lines Matching refs:threadSafe
45 template<bool threadSafe>
51 template<class Deleter, bool threadSafe>
61 typename ReferenceCount<threadSafe>::Type strongRefCount;
62 …typename ReferenceCount<threadSafe>::Type weakRefCount; //!< WeakPtr references + StrongPtr refer…
66 template<typename DstDeleterType, typename SrcDeleterType, bool threadSafe>
67 SharedPtrState<DstDeleterType, threadSafe>* sharedPtrStateCast (SharedPtrState<SrcDeleterType, thre… in sharedPtrStateCast()
69 return reinterpret_cast<SharedPtrState<DstDeleterType, threadSafe>*>(state); in sharedPtrStateCast()
72 template<typename T, class Deleter, bool threadSafe>
75 template<typename T, class Deleter, bool threadSafe>
97 template<typename T, class Deleter = DefaultDeleter<T>, bool threadSafe = true>
102 SharedPtr (const SharedPtr<T, Deleter, threadSafe>& other);
108 explicit SharedPtr (const SharedPtr<Y, DeleterY, threadSafe>& other);
111 explicit SharedPtr (const WeakPtr<Y, DeleterY, threadSafe>& other);
116 SharedPtr& operator= (const SharedPtr<Y, DeleterY, threadSafe>& other);
117 SharedPtr& operator= (const SharedPtr<T, Deleter, threadSafe>& other);
120 SharedPtr& operator= (const WeakPtr<Y, DeleterY, threadSafe>& other);
128 void swap (SharedPtr<T, Deleter, threadSafe>& other);
133 operator SharedPtr<Y, DeleterY, threadSafe> (void) const;
137 void acquireFromWeak (const WeakPtr<T, Deleter, threadSafe>& other);
141 SharedPtrState<Deleter, threadSafe>* m_state;
143 friend class WeakPtr<T, Deleter, threadSafe>;
163 template<typename T, class Deleter = DefaultDeleter<T>, bool threadSafe = true>
168 WeakPtr (const WeakPtr<T, Deleter, threadSafe>& other);
169 explicit WeakPtr (const SharedPtr<T, Deleter, threadSafe>& other);
172 WeakPtr& operator= (const WeakPtr<T, Deleter, threadSafe>& other);
173 WeakPtr& operator= (const SharedPtr<T, Deleter, threadSafe>& other);
175 SharedPtr<T, Deleter, threadSafe> lock (void);
182 SharedPtrState<Deleter, threadSafe>* m_state;
184 friend class SharedPtr<T, Deleter, threadSafe>;
192 template<typename T, class Deleter, bool threadSafe>
193 inline SharedPtr<T, Deleter, threadSafe>::SharedPtr (void) in SharedPtr()
208 template<typename T, class Deleter, bool threadSafe>
210 inline SharedPtr<T, Deleter, threadSafe>::SharedPtr (Y* ptr, Deleter deleter) in SharedPtr()
217 m_state = new SharedPtrState<Deleter, threadSafe>(deleter); in SharedPtr()
233 template<typename T, class Deleter, bool threadSafe>
234 inline SharedPtr<T, Deleter, threadSafe>::SharedPtr (const SharedPtr<T, Deleter, threadSafe>& other) in SharedPtr()
247 template<typename T, class Deleter, bool threadSafe>
249 inline SharedPtr<T, Deleter, threadSafe>::SharedPtr (const SharedPtr<Y, DeleterY, threadSafe>& othe… in SharedPtr()
262 template<typename T, class Deleter, bool threadSafe>
264 inline SharedPtr<T, Deleter, threadSafe>::SharedPtr (const WeakPtr<Y, DeleterY, threadSafe>& other) in SharedPtr()
271 template<typename T, class Deleter, bool threadSafe>
272 inline SharedPtr<T, Deleter, threadSafe>::~SharedPtr (void) in ~SharedPtr()
287 template<typename T, class Deleter, bool threadSafe>
289 …line SharedPtr<T, Deleter, threadSafe>& SharedPtr<T, Deleter, threadSafe>::operator= (const Shared… in operator =()
314 template<typename T, class Deleter, bool threadSafe>
315 …nline SharedPtr<T, Deleter, threadSafe>& SharedPtr<T, Deleter, threadSafe>::operator= (const Share… in operator =()
345 template<typename T, class Deleter, bool threadSafe>
347 …nline SharedPtr<T, Deleter, threadSafe>& SharedPtr<T, Deleter, threadSafe>::operator= (const WeakP… in operator =()
366 template<class T, class Deleter, bool threadSafe>
368 inline SharedPtr<T, Deleter, threadSafe>::operator SharedPtr<Y, DeleterY, threadSafe> (void) const in operator SharedPtr<Y,DeleterY,threadSafe>()
370 return SharedPtr<Y, DeleterY, threadSafe>(*this); in operator SharedPtr<Y,DeleterY,threadSafe>()
398 template<typename T, class Deleter, bool threadSafe>
399 inline void SharedPtr<T, Deleter, threadSafe>::swap (SharedPtr<T, Deleter, threadSafe>& other) in swap()
407 template<typename T, class Deleter, bool threadSafe>
408 inline void swap (SharedPtr<T, Deleter, threadSafe>& a, SharedPtr<T, Deleter, threadSafe>& b) in swap()
418 template<typename T, class Deleter, bool threadSafe>
419 inline void SharedPtr<T, Deleter, threadSafe>::clear (void) in clear()
426 template<typename T, class Deleter, bool threadSafe>
427 inline void SharedPtr<T, Deleter, threadSafe>::acquireFromWeak (const WeakPtr<T, Deleter, threadSaf… in acquireFromWeak()
431 SharedPtrState<Deleter, threadSafe>* state = weakRef.m_state; in acquireFromWeak()
436 if (threadSafe) in acquireFromWeak()
464 template<typename T, class Deleter, bool threadSafe>
465 inline void SharedPtr<T, Deleter, threadSafe>::acquire (void) in acquire()
469 if (threadSafe) in acquire()
482 template<typename T, class Deleter, bool threadSafe>
483 inline void SharedPtr<T, Deleter, threadSafe>::release (void) in release()
487 if (threadSafe) in release()
527 template<typename T, class Deleter, bool threadSafe>
528 inline WeakPtr<T, Deleter, threadSafe>::WeakPtr (void) in WeakPtr()
538 template<typename T, class Deleter, bool threadSafe>
539 inline WeakPtr<T, Deleter, threadSafe>::WeakPtr (const WeakPtr<T, Deleter, threadSafe>& other) in WeakPtr()
550 template<typename T, class Deleter, bool threadSafe>
551 inline WeakPtr<T, Deleter, threadSafe>::WeakPtr (const SharedPtr<T, Deleter, threadSafe>& other) in WeakPtr()
558 template<typename T, class Deleter, bool threadSafe>
559 inline WeakPtr<T, Deleter, threadSafe>::~WeakPtr (void) in ~WeakPtr()
572 template<typename T, class Deleter, bool threadSafe>
573 inline WeakPtr<T, Deleter, threadSafe>& WeakPtr<T, Deleter, threadSafe>::operator= (const WeakPtr<T… in operator =()
596 template<typename T, class Deleter, bool threadSafe>
597 inline WeakPtr<T, Deleter, threadSafe>& WeakPtr<T, Deleter, threadSafe>::operator= (const SharedPtr… in operator =()
609 template<typename T, class Deleter, bool threadSafe>
610 inline void WeakPtr<T, Deleter, threadSafe>::acquire (void) in acquire()
614 if (threadSafe) in acquire()
621 template<typename T, class Deleter, bool threadSafe>
622 inline void WeakPtr<T, Deleter, threadSafe>::release (void) in release()
626 if (threadSafe) in release()