Skip to content

Instantly share code, notes, and snippets.

@cfanatic
Created July 4, 2021 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cfanatic/d5169df2aad3eb25d0bede7a9e90a9bb to your computer and use it in GitHub Desktop.
Save cfanatic/d5169df2aad3eb25d0bede7a9e90a9bb to your computer and use it in GitHub Desktop.
Non-blocking FIFO process
cmake_minimum_required(VERSION 3.18)
project(fifo)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
find_package(Boost 1.74.0 COMPONENTS iostreams system)
include_directories(${Boost_INCLUDE_DIR})
add_executable(fifo fifo.cpp)
target_link_libraries(fifo ${Boost_LIBRARIES})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment