How g-uooo/sc-during works
Project type and purpose
• This is sc‑during: a C++ library for parallel programming on top of SystemC.
• It is not a full‑stack application but an open‑source library with example apps and tests.
• Purpose: provide “during” semantics—loosely timed parallel tasks, thread pools, event queues—on any unmodified SystemC.
File structure
• Top‑level:
• CMakeLists.txt, .gitlab‑ci.yml, installation scripts
• README.rst, COPYING, Doxyfile.in → build & doc tooling
• lib‑during/:
• Core modules: during-env, during-ondemand, during-pool, during-seq, during-thread, sync-task, task-manager, thread-pool‑base/ondemand
• Header files defining public API (during.h, during-if.h, async-event-queue.h)
• utils/ subfolder: atomic-variable, big-lock, cpu-affinity, io-lock, randomize, measure-time, etc.
• Examples/: sample SystemC models exercising library features
• Test/: automated test cases driven by test.sh and CMake AddSCExecTest
• install‑boost.sh, install‑doc.sh
README for additional insights
• Library runs on top of any SystemC implementation
• Documentation generated via Doxygen
• Test harness invokes each example in multiple modes, compares output
• Encourages writing self‑checking tests and inserting sleeps to expose races