Comments on Building A Game Application Server part 2

1 Comment.

Counterpoint to the STL argument: It’s easy to add your own lock to your own queue that’s built from STL structures. The STL is intended as building-blocks for implementing the innards of classes, not as structures that should be passed around publicly (and when you do you really should typedef them to meaningful names). An STL deque combined with boost::thread (especially lock_guard) makes for a very simple implementation that is every bit as efficient and MUCH more readable, maintainable, and error-resistant.

-- fluffy 2017-10-10 12:56 UTC