/sqlite3cc

To get this branch, use:
bzr branch http://bzr.ed.am/sqlite3cc

« back to all changes in this revision

Viewing changes to src/util.cc

  • Committer: edam
  • Date: 2010-01-31 21:12:21 UTC
  • Revision ID: edam@waxworlds.org-20100131211221-5xtrhfrchozhk326
- rewrote transaction classes and added transaction_guard
- removed leftover code (sqlite_busy error)
- added tests for transactions

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <sqlite3cc/util.h>
24
24
 
25
25
 
26
 
int sqlite::threadsafe()
27
 
{
28
 
        return sqlite3_threadsafe();
29
 
}
30
 
 
31
 
 
32
 
extern "C" void libsqlite3cc_is_present( void )
33
 
{
 
26
bool sqlite::threadsafe()
 
27
{
 
28
        return sqlite3_threadsafe() == 1;
34
29
}