Harlan, the repo is in
psp.ntp.org:~perlinger/ntp-stable-2831
compiled and run with
linux/x64 --with-threads (threading resolver) linux/x64 --without-threads (forking resolver) Windows7/x64/VS2008 (threading resolver)
Hal, Mike, good catch. Only the proposed lock falls a bit short. You have to interlock all access to the global table, not just the realloc() call.
And using pthread_mutex_t is not so easy with Windows, but we all knew that ;) I used a semaphore (again) since there is already a suitable wrapper.
Harlan, the repo is in
psp.ntp. org:~perlinger/ ntp-stable- 2831
compiled and run with
linux/x64 --with-threads (threading resolver) x64/VS2008 (threading resolver)
linux/x64 --without-threads (forking resolver)
Windows7/
Hal, Mike, good catch. Only the proposed lock falls a bit short. You have to interlock all access to the global table, not just the realloc() call.
And using pthread_mutex_t is not so easy with Windows, but we all knew that ;) I used a semaphore (again) since there is already a suitable wrapper.