Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
01dfb208
Commit
01dfb208
authored
Oct 04, 2013
by
Howard Chu
Browse files
Add MDB_USE_HASH
There may be other uses for it besides semaphore names.
parent
940f5cb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblmdb/mdb.c
View file @
01dfb208
...
...
@@ -67,6 +67,7 @@
#if defined(__APPLE__) || defined (BSD)
# define MDB_USE_POSIX_SEM 1
# define MDB_USE_HASH 1
# define MDB_FDATASYNC fsync
#elif defined(ANDROID)
# define MDB_FDATASYNC fsync
...
...
@@ -140,6 +141,7 @@
* @{
*/
#ifdef _WIN32
#define MDB_USE_HASH 1
#define MDB_PIDLOCK 0
#define pthread_t DWORD
#define pthread_mutex_t HANDLE
...
...
@@ -3601,7 +3603,7 @@ mdb_env_excl_lock(MDB_env *env, int *excl)
return
rc
;
}
#if
def
ined(_WIN32) || defined(MDB_USE_POSIX_SEM)
#ifdef
MDB_USE_HASH
/*
* hash_64 - 64 bit Fowler/Noll/Vo-0 FNV-1a hash code
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment