SQLite

Check-in [9964ad245f]
Login

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

Overview
Comment:Compilation fix for POSIX.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | mutexDbg2
Files: files | file ages | folders
SHA1: 9964ad245f66cd04cb41338180b65923ef093094
User & Date: mistachkin 2017-02-15 00:02:02.950
Context
2017-02-15
00:45
Make fine time granularity work on POSIX. (check-in: 79057716d9 user: mistachkin tags: mutexDbg2)
00:02
Compilation fix for POSIX. (check-in: 9964ad245f user: mistachkin tags: mutexDbg2)
2017-02-14
23:58
Experimental enhancements to mutex debugging. (check-in: 804817549c user: mistachkin tags: mutexDbg2)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/sqliteInt.h.
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556

/*
** This macro returns a 64-bit integer time value, in milliseconds,
** or zero if that information is not available.
*/
# ifndef SQLITE_GET_MUTEX_TIME
#  if SQLITE_OS_UNIX
#   define SQLITE_GET_MUTEX_TIME()   (((i64)time())*1000)
#  elif SQLITE_OS_WIN
#   define SQLITE_GET_MUTEX_TIME()   ((i64)GetTickCount())
#  else
#   define SQLITE_GET_MUTEX_TIME()   (0)
#  endif
# endif








|







3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556

/*
** This macro returns a 64-bit integer time value, in milliseconds,
** or zero if that information is not available.
*/
# ifndef SQLITE_GET_MUTEX_TIME
#  if SQLITE_OS_UNIX
#   define SQLITE_GET_MUTEX_TIME()   (((i64)time(0))*1000)
#  elif SQLITE_OS_WIN
#   define SQLITE_GET_MUTEX_TIME()   ((i64)GetTickCount())
#  else
#   define SQLITE_GET_MUTEX_TIME()   (0)
#  endif
# endif