Linked Questions
11 questions linked to/from Thread safe implementation of circular buffer
120 votes
6 answers
113k views
Example for boost shared_mutex (multiple reads/one write)?
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 ...
5 votes
1 answer
5k views
Advice for real time image processing
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 ...
5 votes
3 answers
7k views
How to implement a circular buffer of cv::Mat objects (OpenCV)?
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 ...
11 votes
2 answers
10k views
MATLAB - capturing video streams (MJPEG, rtsp, mpeg)
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/...
0 votes
3 answers
9k views
producer/consumer using boost threads and circular buffer hangs
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 ...
4 votes
1 answer
11k views
c++ threadsafe ringbuffer implementation [closed]
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.
3 votes
1 answer
909 views
How to store and push simulation state while minimally affecting updates per second?
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 ...
0 votes
2 answers
1k views
Threadsafe circular buffer for storing pointers
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 ...
0 votes
1 answer
677 views
circular buffer for opencv cv::Mat
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; ...
0 votes
0 answers
513 views
thread-safe circular buffer
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 ...
1 vote
1 answer
239 views
C++ Allocator: hooking into a resize function
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 ...