System.Data.SQLite
Check-in [44eb94e4ec]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Style fix.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 44eb94e4ece35122e38bd581733f66ff33a147d5
User & Date: mistachkin 2013-02-26 02:51:43
Context
2013-02-26
22:43
For the stress test, more carefully synchronize the start for each workload payload so that they all start at almost the 'exact' same time. check-in: be13409f60 user: mistachkin tags: trunk
02:51
Style fix. check-in: 44eb94e4ec user: mistachkin tags: trunk
00:39
Protect access to the CryptoAPI provider handle with a mutex. check-in: 2847ced366 user: mistachkin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to SQLite.Interop/src/win/crypt.c.

42
43
44
45
46
47
48
49

50
51
52
53
54
55
56
** most platforms
*/
static BOOL InitializeProvider()
{
  MUTEX_LOGIC( sqlite3_mutex *pMaster = sqlite3_mutex_alloc(SQLITE_MUTEX_STATIC_MASTER); )
  sqlite3_mutex_enter(pMaster);

  if (g_hProvider) {

    sqlite3_mutex_leave(pMaster);
    return TRUE;
  }

  if (!CryptAcquireContext(&g_hProvider, NULL, MS_ENHANCED_PROV, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT))
  {
    sqlite3_mutex_leave(pMaster);







|
>







42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
** most platforms
*/
static BOOL InitializeProvider()
{
  MUTEX_LOGIC( sqlite3_mutex *pMaster = sqlite3_mutex_alloc(SQLITE_MUTEX_STATIC_MASTER); )
  sqlite3_mutex_enter(pMaster);

  if (g_hProvider)
  {
    sqlite3_mutex_leave(pMaster);
    return TRUE;
  }

  if (!CryptAcquireContext(&g_hProvider, NULL, MS_ENHANCED_PROV, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT))
  {
    sqlite3_mutex_leave(pMaster);