Skip to content

Commit

Permalink
syncronization objects initialization fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Mar 18, 2015
1 parent 9c190c0 commit 09ae2aa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 5 additions & 1 deletion far/changelog
@@ -1,4 +1,8 @@
drkns 18.03.2015 08:18:21 +0200 - build 4311
drkns 18.03.2015 08:59:33 +0200 - build 4312

1. В некоторых случаях не инициализировались объекты синхронизации.

drkns 18.03.2015 08:18:21 +0200 - build 4311

1. Уточнение 4309.

Expand Down
6 changes: 4 additions & 2 deletions far/synchro.hpp
Expand Up @@ -64,7 +64,9 @@ typedef lock_guard<CriticalSection> CriticalSectionLock;
template<class T, class S>
inline string make_name(const S& HashPart, const S& TextPart)
{
return T::GetNamespace() + std::to_wstring(make_hash(HashPart)) + L"_" + TextPart;
auto Str = T::GetNamespace() + std::to_wstring(make_hash(HashPart)) + L"_" + TextPart;
std::replace(ALL_RANGE(Str), L'\\', L'/');
return Str;
}

class HandleWrapper: noncopyable
Expand All @@ -87,7 +89,7 @@ class HandleWrapper: noncopyable

protected:
HandleWrapper(): m_Handle() {}
HandleWrapper(HANDLE Handle): m_Handle(Handle) {}
HandleWrapper(HANDLE Handle): m_Handle(Handle) { assert(Opened()); }
virtual ~HandleWrapper() { Close(); }

void swap(HandleWrapper& rhs) noexcept
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
@@ -1 +1 @@
m4_define(BUILD,4311)m4_dnl
m4_define(BUILD,4312)m4_dnl

0 comments on commit 09ae2aa

Please sign in to comment.