| /*============================================================================= | |
| lock_platform | |
| =============================================================================== | |
| This module provides locking services appropriate for the platform for | |
| which Xmlrpc-c is being built. I.e. services chosen by the build | |
| configuration. | |
| ============================================================================*/ | |
| struct lock * | |
| xmlrpc_lock_create(void) { | |
| return xmlrpc_lock_create_pthread(); | |
| return xmlrpc_lock_create_windows(); | |
| /* One might consider using xmlrpc_lock_create_none() here, but that would | |
| be dangerous. If the system really does have threads that share memory, | |
| and there's just some configuration error here (which is the most likely | |
| case), we would silently build a broken library, which breakage would be | |
| difficult for the user to detect and then diagnose. | |
| If we encounter some actual need for lock_none in the future, we'll | |
| revisit the issue of when the build system should select it | |
| */ | |
| } | |