~ubuntu-branches/ubuntu/quantal/zeroc-ice/quantal

« back to all changes in this revision

Viewing changes to .pc/libdb5.1.patch/cpp/src/Freeze/SharedDbEnv.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Cleto Martín
  • Date: 2011-06-25 19:44:26 UTC
  • mfrom: (6.1.16 sid)
  • Revision ID: james.westby@ubuntu.com-20110625194426-9fip3u3hlwheohvl
Tags: 3.4.2-1
New upstream release (Closes: #631456).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// **********************************************************************
2
2
//
3
 
// Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved.
 
3
// Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
4
4
//
5
5
// This copy of Ice is licensed to you under the terms described in the
6
6
// ICE_LICENSE file included in this distribution.
17
17
 
18
18
#include <IceUtil/MutexPtrLock.h>
19
19
#include <IceUtil/MutexPtrTryLock.h>
 
20
#include <IceUtil/StringUtil.h>
20
21
#include <IceUtil/IceUtil.h>
21
22
 
22
23
#include <Ice/StringConverter.h>
185
186
        Error out(_communicator->getLogger());
186
187
        out << "Freeze DbEnv close error: unknown exception"; 
187
188
    }
 
189
 
 
190
#ifdef _WIN32
 
191
    if(!TlsFree(_tsdKey))
 
192
    {
 
193
        Error out(_communicator->getLogger());
 
194
        out << "Freeze DbEnv close error:" << IceUtilInternal::lastErrorToString();
 
195
    }
 
196
#else
 
197
    int err = pthread_key_delete(_tsdKey);
 
198
    if(err != 0)
 
199
    {
 
200
        Error out(_communicator->getLogger());
 
201
        out << "Freeze DbEnv close error:" << IceUtilInternal::errorToString(err);
 
202
    }
 
203
#endif
188
204
}
189
205
 
190
206