Boost logo

Boost Users :

From: Douglas Gregor (dgregor_at_[hidden])
Date: 2005-01-04 21:27:33

On Jan 4, 2005, at 2:09 PM, Stephen torri wrote:

> On Tue, 2005-01-04 at 13:59 -0500, Doug Gregor wrote:
>>> What are the symptoms of this behavior?
>> If you're using a signal from two threads concurrently, you will most
>> likely see random crashes and other bad behavior. Signals keep a lot
>> of
>> state, even when they are being invoked, so just about anything can
>> trip it up.
> The first thing that came to mind about this was thread specific
> storage
> (TSS). Here is a design pattern that will do what I think we need.

That solves part of the problem, but there's more too it. Eric Niebler
wrote a few posts to the developer's list describing some locking
mechanisms that could be used to make signals work in a multithreaded


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at