Update of /cvsroot/playerstage/code/player/client_libs/libplayerc++
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8133/client_libs/libplayerc++

Modified Files:
        vectormapproxy.cc 
Log Message:
moved lock to prevent double lock call


Index: vectormapproxy.cc
===================================================================
RCS file: 
/cvsroot/playerstage/code/player/client_libs/libplayerc++/vectormapproxy.cc,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** vectormapproxy.cc   24 Oct 2007 22:32:03 -0000      1.3
--- vectormapproxy.cc   6 Dec 2007 22:41:46 -0000       1.4
***************
*** 104,108 ****
  vector<string> VectorMapProxy::GetLayerNames() const
  {
-   scoped_lock_t lock(mPc->mMutex);
    vector<string> names;
    int layerCount = GetLayerCount();
--- 104,107 ----
***************
*** 110,113 ****
--- 109,114 ----
      return names;
  
+   // this lock needs to come after GetLayerCount which locks as well
+   scoped_lock_t lock(mPc->mMutex);
    for (int i=0; i<layerCount; ++i)
    {


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to