Commit c9079be5 authored by Davis King's avatar Davis King

Added a thread safe shared pointer object

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402530
parent 6fbcf3ac
...@@ -39,6 +39,9 @@ namespace dlib ...@@ -39,6 +39,9 @@ namespace dlib
This object is not thread safe. Especially so since it is This object is not thread safe. Especially so since it is
reference counted. So you should take care to not have two shared_ptr reference counted. So you should take care to not have two shared_ptr
objects in different threads that point to the same object. objects in different threads that point to the same object.
If you want a thread safe version of this object you should use the
dlib::shared_ptr_thread_safe object instead.
!*/ !*/
public: public:
......
This diff is collapsed.
This diff is collapsed.
// Copyright (C) 2008 Davis E. King (davisking@users.sourceforge.net)
// License: Boost Software License See LICENSE.txt for the full license.
#ifndef DLIB_SMART_POINTERs_THREAD_SAFE_H_
#define DLIB_SMART_POINTERs_THREAD_SAFE_H_
#include "smart_pointers/shared_ptr_thread_safe.h"
#endif // DLIB_SMART_POINTERs_THREAD_SAFE_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment