1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-15 11:41:13 +03:00

Add the sqlite3_os_routine_set()/get() functions. (CVS 2818)

FossilOrigin-Name: c1ed79f594fb85009c2e9e5e281cbe66a9d2fa17
This commit is contained in:
danielk1977
2005-12-15 10:11:30 +00:00
parent af9a7c22b5
commit 13a68c3f61
14 changed files with 198 additions and 45 deletions

View File

@@ -1020,6 +1020,21 @@ static int winCurrentTime(double *prNow){
return 0;
}
/*
** Todo: This is a place-holder only
*/
static void *winThreadSpecificData(int nByte){
static char tsd[sizeof(SqliteTsd)];
static isInit = 0;
assert( nByte==sizeof(SqliteTsd) );
if( !isInit ){
memset(tsd, 0, sizeof(SqliteTsd));
isInit = 1;
}
return (void *)tsd;
}
/* Macro used to comment out routines that do not exists when there is
** no disk I/O
*/
@@ -1047,6 +1062,7 @@ struct sqlite3OsVtbl sqlite3Os = {
winCurrentTime,
winEnterMutex,
winLeaveMutex,
winThreadSpecificData
};
#endif /* OS_WIN */