VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Boot/EFI
AgeCommit message (Expand)AuthorFilesLines
2017-07-09Windows: Update EFI bootloader files from VeraCrypt-DCS 1.21 after Camellia 6...Mounir IDRASSI2-0/+0
2017-07-07Windows: Update EFI bootloader files from VeraCrypt-DCS 1.21Mounir IDRASSI4-0/+0
2017-07-02Windows: Update EFI bootloader file from latest VeraCrypt-DCS 1.21Mounir IDRASSI6-0/+0
2017-06-29Windows: Update EFI bootloader file from latest VeraCrypt-DCSMounir IDRASSI4-0/+0
2017-06-21Windows: Update EFI bootloader file from latest VeraCrypt-DCS that includes C...Mounir IDRASSI4-0/+0
2017-06-21Update EFI bootloader files to latest VeraCrypt-DCS (commit "BML flags added")Mounir IDRASSI10-0/+0
2017-06-11Windows: Update EFI bootloader file from latest VeraCrypt-DCS 1.20Mounir IDRASSI14-0/+0
2017-06-05Beta2 patch 1kavsrf7-5/+4
2017-06-05DcsInfo is addedkavsrf14-0/+0
2016-12-30Windows: Update EFI bootloader file from latest VeraCrypt-DCS 1.20-BETA2 build.Mounir IDRASSI6-0/+0
2016-12-07Windows: Update EFI bootloader file from latest VeraCrypt-DCS build that incl...Mounir IDRASSI6-0/+0
2016-10-17Windows: Support EFI system encryption for 32-bit Windows.Mounir IDRASSI6-0/+0
2016-10-17Windows: Update EFI bootloader file from latest VeraCrypt-DCS build.Mounir IDRASSI3-0/+0
2016-10-17Windows: Add latest DCS bootloader binaries built against latest sourcesMounir IDRASSI4-0/+0
2016-08-21Windows Boot: About EFI Bootloader files linked against latest sourcesMounir IDRASSI3-0/+0
2016-08-17Windows Boot: update EFI Boot Loader file after correction made to wrong pass...Mounir IDRASSI2-0/+0
2016-08-17Add reference to VeraCrypt-DCS EFI Boot loader in Readme. Update copyrights.Mounir IDRASSI1-1/+23
2016-08-17Windows Bootloader: Update EFI bootloader files built using the latest source...Mounir IDRASSI3-0/+0
2016-08-15Windows: Add DCS EFI Bootloader files that are signed. Add certificates and p...Mounir IDRASSI29-0/+38
pan class="cm">/* 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-2016 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_Thread #define TC_HEADER_Platform_Thread #ifdef TC_WINDOWS # include "System.h" # define TC_THREAD_PROC DWORD WINAPI #else # include <pthread.h> # define TC_THREAD_PROC void* #endif #include "PlatformBase.h" #include "Functor.h" #include "SharedPtr.h" #include "SyncEvent.h" namespace VeraCrypt { class Thread { public: #ifdef TC_WINDOWS typedef HANDLE ThreadSystemHandle; typedef LPTHREAD_START_ROUTINE ThreadProcPtr; #else typedef pthread_t ThreadSystemHandle; typedef void* (*ThreadProcPtr) (void *); #endif Thread () { }; virtual ~Thread () { }; void Join () const; void Start (ThreadProcPtr threadProc, void *parameter = nullptr); void Start (Functor *functor) { Start (Thread::FunctorEntry, (void *)functor); } static void Sleep (uint32 milliSeconds); protected: static TC_THREAD_PROC FunctorEntry (void *functorArg) { Functor *functor = (Functor *) functorArg; try { (*functor) (); } catch (...) { } delete functor; return 0; } static const size_t MinThreadStackSize = 1024 * 1024; ThreadSystemHandle SystemHandle; private: Thread (const Thread &); Thread &operator= (const Thread &); }; } #endif // TC_HEADER_Platform_Thread