debugging while running multi-threaded
14 Oct
2005
14 Oct
'05
4:06 p.m.
log output is not protected.... a mutex would probably be a good idea in vradlog for debug mode. I am testing something like that now. Joe
14 Oct
14 Oct
4:43 p.m.
Joe Maimon <jmaimon@ttec.com> wrote:
a mutex would probably be a good idea in vradlog for debug mode. I am testing something like that now.
Mutexes are expensive. Instead, write the data to a local buffer via snprintf, and call write(). It's still not perfect, but the odds of problems occuring are less. Alan DeKok.
7572
Age (days ago)
7572
Last active (days ago)
1 comments
2 participants
participants (2)
-
Alan DeKok -
Joe Maimon