minor refactor of ustd to avoid deadlock
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Mon, 5 Oct 2009 19:55:19 +0000 (15:55 -0400)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Mon, 5 Oct 2009 19:55:19 +0000 (15:55 -0400)
commitf99c0b5cbc04e120ca0b80b472844d9b76941308
tree8326ff3e5311f578c00fca691ec745039201ab2f
parente55f3ac9cbde0a19842f003f904f2731d88f2a3c
minor refactor of ustd to avoid deadlock

Previously, we could have a deadlock between ustd and libust:

- libust connects to the ustd socket and waits for a reply
- while ustd is sending commands to the same libust to get
  information about a buffer

To fix this, info about a buffer to collect is retrieved from within
a different thread than the one that processes incoming commands.
ustd/ustd.c
ustd/ustd.h
This page took 0.024936 seconds and 4 git commands to generate.