This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.2) | |
project(nisqually) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | |
add_definitions(-DENTRY_CONFIG_USE_SDL=1) | |
add_definitions(-DBGFX_CONFIG_RENDERER_OPENGL=1) | |
IF(APPLE) | |
set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -framework SDL2 -framework CoreFoundation -framework Cocoa -framework OpenGL -framework GLUT") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.UUID; | |
import java.util.concurrent.LinkedBlockingQueue; | |
public class Barber { | |
private final static int MaxSeats = 3; | |
public static void main(String[] args) throws InterruptedException { | |
final LinkedBlockingQueue<String> q = new LinkedBlockingQueue<String>( | |
MaxSeats); | |
// Barber thread |