-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Home
Tomasz Poradowski edited this page Nov 1, 2017
·
4 revisions
Notes about code changes in this port:
- each time a mutex is used (i.e. by
zmalloc.c
code) it needs to be explicitly initialized by a call topthread_mutex_init(&mutex_name, NULL)
, which is defined for_WIN32
as a call toInitializeCriticalSectionAndSpinCount((a), 0x80000400),0
; to make it easier for initializing I've made those mutexes non-static and later on introduced viaextern
keyword - original win-3.2.100 port adjusted format strings passed to
sprintf
due to a different convention for integer/long types, so each new code migrated from Redis needs to be reviewed (%ld
->%Id
,%lu
->%Iu
,%zu
->%Iu
,%jd
->%lld
, etc.)