diff options
author | Robin Gareus <robin@gareus.org> | 2015-12-02 13:38:59 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-12-02 13:59:48 +0100 |
commit | 14d6470ad36a1682966ff93e774849901055a916 (patch) | |
tree | d37838c341a09f1814db6783b920ceab4cbdf6aa /wscript | |
parent | e9be313c11cb0eafd7fcd2800748ae80be95787f (diff) |
prefer pthread-semaphores (posix API) with mingw
Hopefully this resolves glitches on hyperthreading machines.
Apart from using unnamed Semaphores, pthread-w32 includes additional locks
(guess: mem-barriers), a fallback implementation and windows-specific
tricks that I'd rather not want to know about :)
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -963,6 +963,11 @@ int main () { int x = SFC_RF64_AUTO_DOWNGRADE; return 0; } conf.env.append_value('CXXFLAGS', '-DUSE_CAIRO_IMAGE_SURFACE') conf.define ('WINDOWS', 1) + if os.path.isfile (user_gtk_root + 'include/semaphore.h'): + conf.define ('USE_PTW32_SEMAPHORE', 1) + conf.env.append_value('CFLAGS', '-DUSE_PTW32_SEMAPHORE') + conf.env.append_value('CXXFLAGS', '-DUSE_PTW32_SEMAPHORE') + if Options.options.dist_target == 'msvc': conf.env.append_value('CFLAGS', '-DPLATFORM_WINDOWS') conf.env.append_value('CFLAGS', '-DCOMPILER_MSVC') @@ -1144,7 +1149,8 @@ const char* const ardour_config_info = "\\n\\ write_config_text('Phone home', conf.is_defined('PHONE_HOME')) write_config_text('Program name', opts.program_name) write_config_text('Samplerate', conf.is_defined('HAVE_SAMPLERATE')) - write_config_text('PT format', conf.is_defined('PTFORMAT')) + write_config_text('PT format', conf.is_defined('PTFORMAT')) + write_config_text('PTW32 Semaphore', conf.is_defined('USE_PTW32_SEMAPHORE')) # write_config_text('Soundtouch', conf.is_defined('HAVE_SOUNDTOUCH')) write_config_text('Translation', opts.nls) # write_config_text('Tranzport', opts.tranzport) |