The name "Service" better reflects the general purpose of this class: It provides *something* (often resource management) to the Session, is owned by the Session, and receives notifications from the Session when the controller detaches / is detached, and when the Session is shut down. An example of a non-resource-managing Service (to be added in an upcoming patch) is a detach / shutdown notification service: Clients can add this service to register arbitrary callbacks to be run on detach / shutdown. The advantage of this over the current Session detach / shutdown callback system is that clients can control both the order of the callbacks, and their order relative to notification of other services.
25 lines
601 B
CMake
25 lines
601 B
CMake
set(files
|
|
AllocAction.cpp
|
|
Error.cpp
|
|
QueueingTaskDispatcher.cpp
|
|
RTTI.cpp
|
|
Service.cpp
|
|
Session.cpp
|
|
SimpleNativeMemoryMap.cpp
|
|
TaskDispatcher.cpp
|
|
ThreadPoolTaskDispatcher.cpp
|
|
)
|
|
|
|
add_library(orc-rt-executor STATIC ${files})
|
|
target_link_libraries(orc-rt-executor
|
|
PUBLIC orc-rt-headers
|
|
)
|
|
|
|
# Apply RTTI and exceptions compile flags
|
|
target_compile_options(orc-rt-executor PRIVATE ${ORC_RT_COMPILE_FLAGS})
|
|
install(TARGETS orc-rt-executor
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
COMPONENT OrcRT_Development
|
|
PUBLIC_HEADER DESTINATION include COMPONENT OrcRT_Development
|
|
)
|