|
From: CVS C. to T. <the...@li...> - 2017-01-15 12:05:18
|
Revision: 736
http://sourceforge.net/p/themis/code/736
Author: mark_hellegers
Date: 2017-01-15 12:05:15 +0000 (Sun, 15 Jan 2017)
Log Message:
-----------
Remove autolock as it is not used and can cause a problem on shutdown as
it can be deleted from a different thread than the one currently holding
it.
Modified Paths:
--------------
trunk/themis/common/cacheplug.cpp
trunk/themis/common/cacheplug.h
Modified: trunk/themis/common/cacheplug.cpp
===================================================================
--- trunk/themis/common/cacheplug.cpp 2017-01-15 12:03:24 UTC (rev 735)
+++ trunk/themis/common/cacheplug.cpp 2017-01-15 12:05:15 UTC (rev 736)
@@ -33,8 +33,6 @@
CachePlug::CachePlug(BMessage *info,const char *msg_sys_name)
:PlugClass(info,msg_sys_name)
{
- lock=new BLocker(true); // set up the locking support
- autolock=new BAutolock(lock);// automatically lock when a thread takes control
user_token_value=0;
object_token_value=0;
userlist=NULL;
@@ -50,8 +48,6 @@
userlist=cur;
}
}
- delete autolock;
- delete lock;
}
uint32 CachePlug::Register(uint32 broadcast_target,const char* name)
{
Modified: trunk/themis/common/cacheplug.h
===================================================================
--- trunk/themis/common/cacheplug.h 2017-01-15 12:03:24 UTC (rev 735)
+++ trunk/themis/common/cacheplug.h 2017-01-15 12:05:15 UTC (rev 736)
@@ -54,8 +54,6 @@
uint32 user_token_value; //!< the current user token value; increments with each call to Register
int32 object_token_value; //!< the current cache object token value; increments when requested URLs are found or cache items are created
CacheUser *userlist;//!< the linked list of registered cache users
- BLocker *lock; //!< This object is the locking mechanism used by the autolock.
- BAutolock *autolock; //!< This object automatically locks the cache system when a new thread attempts to access it.
public:
CachePlug(BMessage *info=NULL,const char *msg_sys_name=NULL);
virtual ~CachePlug();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|