mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:52:44 +00:00 
			
		
		
		
	 00d8dbe739
			
		
	
	
		00d8dbe739
		
	
	
	
	
		
			
			This implementation features a fast path for pthread_cond_signal() and pthread_cond_broadcast() for the case there's no thread waiting, and does not exhibit the "thundering herd" issue in pthread_cond_broadcast(). Fixes https://github.com/SerenityOS/serenity/issues/8432
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			264 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			264 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| set(SOURCES
 | |
|     forward.cpp
 | |
|     pthread.cpp
 | |
|     pthread_cond.cpp
 | |
|     pthread_once.cpp
 | |
|     semaphore.cpp
 | |
| )
 | |
| 
 | |
| serenity_libc(LibPthread pthread)
 | |
| target_link_libraries(LibPthread LibC LibSystem)
 | |
| target_include_directories(LibPthread PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
 |