Compiler: GCC 2.95.4
Platform: Debian
Thread Library: pth from GNU
Ok say I have a struct such asand I lock it withCode:struct blah { int x; int y; int c; /* blah blah blah */ pth_mutex_t lock; };Does it lock the entire structure? If not how do I lock the entire thing?Code:struct blah blahblah; pth_acquire(&blahblah.lock, 0, NULL);
At the time of this posting gnu.org is down so I'm not able to look there and the man page doesn't seem to explain it clearly.
Thanks