Skip to content

Commit 1d989fa

Browse files
Wovchenaeldercrow
authored andcommitted
security_barrier_camera: threadPull->threadPool, update README.md
1 parent 50ecdde commit 1d989fa

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

demos/security_barrier_camera_demo/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ At the end of the sequence, the `VideoFrame` is destroyed and the sequence start
4343

4444
Running the application with the <code>-h</code> option yields the following usage message:
4545
```sh
46-
[ INFO ] InferenceEngine:
47-
API version ............ <version>
48-
Build .................. <number>
46+
[ INFO ] InferenceEngine: <version>
4947

5048
interactive_vehicle_detection [OPTION]
5149
Options:

demos/security_barrier_camera_demo/common.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ struct HigherPriority {
5656
class Worker {
5757
public:
5858
explicit Worker(unsigned threadNum):
59-
threadPull(threadNum), running{false} {}
59+
threadPool(threadNum), running{false} {}
6060
~Worker() {
6161
stop();
6262
}
6363
void runThreads() {
6464
running = true;
65-
for (std::thread& t : threadPull) {
65+
for (std::thread& t : threadPool) {
6666
t = std::thread(&Worker::threadFunc, this);
6767
}
6868
}
@@ -100,7 +100,7 @@ class Worker {
100100
tasksCondVar.notify_all();
101101
}
102102
void join() {
103-
for (auto& t : threadPull) {
103+
for (auto& t : threadPool) {
104104
t.join();
105105
}
106106
if (nullptr != currentException) {
@@ -112,7 +112,7 @@ class Worker {
112112
std::condition_variable tasksCondVar;
113113
std::set<std::shared_ptr<Task>, HigherPriority> tasks;
114114
std::mutex tasksMutex;
115-
std::vector<std::thread> threadPull;
115+
std::vector<std::thread> threadPool;
116116
std::atomic<bool> running;
117117
std::exception_ptr currentException;
118118
std::mutex excpetionMutex;

0 commit comments

Comments
 (0)