/*
* Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
+ * Copyright (C) 2007 Justin Haygood (jhaygood@reaktix.com)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
SQLiteDatabase::SQLiteDatabase()
: m_db(0)
, m_transactionInProgress(false)
+ , m_openingThread(0)
{
-#ifndef NDEBUG
- memset(&m_openingThread, 0, sizeof(pthread_t));
-#endif
}
SQLiteDatabase::~SQLiteDatabase()
return false;
}
-#ifndef NDEBUG
if (isOpen())
- m_openingThread = pthread_self();
-#endif
+ m_openingThread = currentThread();
if (!SQLiteStatement(*this, "PRAGMA temp_store = MEMORY;").executeCommand())
LOG_ERROR("SQLite database could not set temp_store to memory");
m_path.truncate(0);
m_db = 0;
}
-#ifndef NDEBUG
- memset(&m_openingThread, 0, sizeof(pthread_t));
-#endif
+
+ m_openingThread = 0;
}
void SQLiteDatabase::setFullsync(bool fsync)
}
} // namespace WebCore
-
-