From 9abb7fcf26477f643df4c6a1e587625a694e96ea Mon Sep 17 00:00:00 2001 From: robtor Date: Tue, 5 Dec 2023 21:32:22 +0100 Subject: [PATCH] Cleanup code --- task3/CMakeLists.txt | 4 ++-- task3/main.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/task3/CMakeLists.txt b/task3/CMakeLists.txt index ad8f6b9..13e97bc 100644 --- a/task3/CMakeLists.txt +++ b/task3/CMakeLists.txt @@ -1,4 +1,3 @@ - find_package(Qt6 COMPONENTS Core REQUIRED) add_executable(task3-chpt3ex12) @@ -7,4 +6,5 @@ target_sources(task3-chpt3ex12 PRIVATE main.cpp) target_link_libraries(task3-chpt3ex12 PRIVATE - Qt6::Core) \ No newline at end of file + Qt6::Core + Qt6::Multimedia) \ No newline at end of file diff --git a/task3/main.cpp b/task3/main.cpp index 45d3414..3e8c0ca 100644 --- a/task3/main.cpp +++ b/task3/main.cpp @@ -89,6 +89,7 @@ protected: int main(int argc, char *argv[]) { //QCoreApplication app(argc, argv); + QSemaphore lockC(1); QSemaphore lockBC(0);