mirror of
				https://github.com/codership/wsrep-lib.git
				synced 2025-10-31 06:50:26 +03:00 
			
		
		
		
	This commit defines a TLS service interface. If the implementation is provided by the application when the provider is loaded, appropriate hooks are probed from the provider and the provider side hooks are initialized after the provider is loaded. A sample implementation to demostrate the use of TLS interface is provided in dbsim/db_tls.cpp. Also contains a change to thread service interface: The thread exit virtual method was changed to function pointer to allow thread exit path which does not involve C++.
		
			
				
	
	
		
			22 lines
		
	
	
		
			518 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			518 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| #
 | |
| # Copyright (C) 2018 Codership Oy <info@codership.com>
 | |
| #
 | |
| 
 | |
| add_executable(dbsim
 | |
|   db_client.cpp
 | |
|   db_client_service.cpp
 | |
|   db_high_priority_service.cpp
 | |
|   db_params.cpp
 | |
|   db_server.cpp
 | |
|   db_server_service.cpp
 | |
|   db_server_state.cpp
 | |
|   db_simulator.cpp
 | |
|   db_storage_engine.cpp
 | |
|   db_threads.cpp
 | |
|   db_tls.cpp
 | |
|   dbsim.cpp
 | |
| )
 | |
| 
 | |
| target_link_libraries(dbsim wsrep-lib ${Boost_PROGRAM_OPTIONS_LIBRARY} ${Boost_SYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} ${Boost_THREAD_LIBRARY})
 | |
| set_property(TARGET dbsim PROPERTY CXX_STANDARD 14)
 |