Linked Questions

120 votes
6 answers
113k views

I have a multithreaded app that has to read some data often, and occasionally that data is updated. Right now a mutex keeps access to that data safe, but it's expensive because I would like multiple ...
kevin42's user avatar
  • 2,138
5 votes
1 answer
5k views

really need some help and advice as I'm new with real time image processing. I am trying to implement an algorithm for a system which the camera get 1000fps, and I need to get the value of each pixel ...
user261002's user avatar
  • 2,262
5 votes
3 answers
7k views

I'm trying to implement a circular buffer for my program. The buffer is used to share data between two threads as shown below. I use OpenCV to grab video frames from camera (Thread 1). Then I would ...
Alexey's user avatar
  • 5,998
11 votes
2 answers
10k views

Has anyone worked with capturing video streams from IP cameras in MATLAB? For example to grab frames in MATLAB from rtsp://10.10.10.10:554/live.sdp (rtsp stream) or from http://x.x.x.x/axis-cgi/mjpg/...
Alexey's user avatar
  • 5,998
0 votes
3 answers
9k views

I figured it out. Silly mistake on my part, I was not actually deleting the element from the queue, I was just reading the first element. I modified the code and the code below no works. Thanks all ...
shaun's user avatar
  • 570
4 votes
1 answer
11k views

I am doing multithread programming in C++ and I am wondering whether there is a thread-safe implementation of ringbuffer in C++ or do you have any idea how I can implement it.
Avb Avb's user avatar
  • 553
3 votes
1 answer
909 views

My app is comprised of two threads: GUI Thread (using Qt) Simulation Thread My reason for using two threads is to keep the GUI responsive, while letting the Sim thread spin as fast as possible. In my ...
Casey's user avatar
  • 6,396
0 votes
2 answers
1k views

I am currently working on a threadsafe circular buffer for storing pointers. As basis I used the code from this thread: Thread safe implementation of circular buffer. My code is shown below. Because ...
Daiz's user avatar
  • 377
0 votes
1 answer
677 views

I use this example for circular buffering. To test test I created next three functions: void cnt(ScreenStreamer &SS, cv::Mat & img) { CVUtils::Image m_img; SS >> m_img; ...
hagor's user avatar
  • 314
0 votes
0 answers
513 views

I'd like change thread safe circular buffer that i saw here, adding a predicate at the condition variable like in this article. I need to go out of my wait condition after a lot of time with the ...
user3371854's user avatar
1 vote
1 answer
239 views

As far as I know, when a vector runs out of space the allocator is used to create new space. However, I want to create a custom resize policy that will remove the bottom 25% of elements instead and ...
andre's user avatar
  • 155