The boost tag has no wiki summary.
2
votes
0answers
14 views
Reviewing a generic pipe and filters
I made a template pipe and filters to replace an old pipe and filters implementation that used inheritance and had a very heavy base class.
#include <iostream>
#include <boost/bind.hpp>
...
3
votes
1answer
81 views
efficient smart pointer implementation in C++
So the idea behind this is mainly educational but I might even consider using it in reality if turns out to be good. Here's my first try at implementing smart_pointers
template<typename T>
...
3
votes
1answer
47 views
Selecting element from a collection based on bitwise-and result
I need to improve this section of code:
uint32_t to_handle = 0;
uint32_t test_const1 = Constraint3::VAL1 + Constraint3::VAL2;
uint32_t test_const2 = Constraint1::VAL2 + ...
1
vote
0answers
109 views
Correct Use of Boost Mutex
I have an event driven system that needs the ability to turn on and off a logger. The issues is that the user could spam a button which could try to turn on the logger over and over again. The turning ...
1
vote
1answer
394 views
Boost Threads - Producer Consumer threads with synchronization - Review
I have below code for multi threaded consumer and single producer. Kindly review it ro concurrency correctness.
#include <iostream>
#include <queue>
#include "boost\thread.hpp"
#include ...
1
vote
0answers
74 views
Is this the right way to handle game states?
I'm writing a ORPG. The code below is client side.
I have main thread looping in Game::Run:
Game::~Game()
{
PopAllStates();
}
void Game::Run()
{
sf::Event Event;
...
7
votes
3answers
436 views
Force locking for thread-safety
After reading Herb Sutter's Associate Mutexes with Data to Prevent Races, I found that my solution was superior in several aspects, least important first:
The code is cleaner, without macros
No ...
2
votes
1answer
114 views
C++ Singleton Boost Based Timer (For Review)
I would like a review on this code, and how I could make it better.
#include <boost/bind/bind.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/function.hpp>
...