/* Derived from source code of TrueCrypt 7.1a, which is Copyright (c) 2008-2012 TrueCrypt Developers Association and which is governed by the TrueCrypt License 3.0. Modifications and additions to the original source code (contained in this file) and all other portions of this file are Copyright (c) 2013-2017 IDRIX and are governed by the Apache License 2.0 the full text of which is contained in the file License.txt included in VeraCrypt binary and source code distribution packages. */ #ifndef TC_HEADER_Platform_Mutex #define TC_HEADER_Platform_Mutex #ifdef TC_WINDOWS # include "System.h" #else # include #endif #include "PlatformBase.h" namespace VeraCrypt { class Mutex { #ifdef TC_WINDOWS typedef CRITICAL_SECTION SystemMutex_t; #else typedef pthread_mutex_t SystemMutex_t; #endif public: Mutex (); ~Mutex (); SystemMutex_t *GetSystemHandle () { return &SystemMutex; } void Lock (); void Unlock (); protected: bool Initialized; SystemMutex_t SystemMutex; private: Mutex (const Mutex &); Mutex &operator= (const Mutex &); }; class ScopeLock { public: ScopeLock (Mutex &mutex) : ScopeMutex (mutex) { mutex.Lock(); } ~ScopeLock () { ScopeMutex.Unlock(); } protected: Mutex &ScopeMutex; private: ScopeLock (const ScopeLock &); ScopeLock &operator= (const ScopeLock &); }; } #endif // TC_HEADER_Platform_Mutex le class='tabs'> aboutsummaryrefslogtreecommitdiff
path: root/src/ExpandVolume/DlgExpandVolume.cpp
AgeCommit message (Collapse)AuthorFilesLines
2023-07-22Windows: Remove TrueCrypt support. Increment version to 1.26.4.Mounir IDRASSI1-6/+3
2023-06-25Windows: 100% localization of Expander UI stringsMounir IDRASSI1-30/+30
2023-06-25Windows: Better language localization support for Expander.Mounir IDRASSI1-0/+4
More work is needed to localize remaining string resources
2019-10-23Windows: A Quick Expand option to VeraCrypt Expander to allow quicker ↵Mounir IDRASSI1-2/+68
expansion of file containers after warning about security issues associated with it.
2019-10-18Windows: make VeraCrypt Expander able to resume expansion of volumes whose ↵Mounir IDRASSI1-1/+1
previous expansion was aborted before it finishes
2017-06-23Update IDRIX copyright yearMounir IDRASSI1-1/+1
2016-05-10Remove trailing whitespaceDavid Foerster1-9/+9
2016-05-10Normalize all line terminatorsDavid Foerster1-776/+776
2016-02-12Windows: Add colors (Red, Yellow, Green) to the collected randomness ↵Mounir IDRASSI1-21/+1
indicator depending on how much entropy was gathered. Code re-factoring.
2016-02-07Windows:Fix various issues and warnings reported by static code analysis ↵Mounir IDRASSI1-1/+1
tool Coverity.
2016-01-31Windows: Implement GUI indicator for entropy collected from mouse movements.Mounir IDRASSI1-8/+77
2016-01-27Windows/Linux: Implement exFAT support.Mounir IDRASSI1-1/+6
2016-01-20Copyright: update dates to include 2016.Mounir IDRASSI1-1/+1
2016-01-18Windows: solve Expander GUI issues caused by latest Unicode modifications.Mounir IDRASSI1-6/+6
2015-11-26Windows: Full UNICODE rewrite and implement support for UNICODE passwords.Mounir IDRASSI1-32/+32
2015-09-26Windows: Support specifying volumes size using TB in GUI as it is the case ↵Mounir IDRASSI1-4/+5
in command line.
2015-08-27Windows: Protect against using a container file as its own keyfile. ↵Mounir IDRASSI1-3/+3
Normalizing path names to never use '/' but always '\'.
2015-08-06Update license information to reflect the use of a dual license Apache 2.0 ↵Mounir IDRASSI