Lock access to the twin of a qid more carefully. Previously, the code
authorChris Hanson <org/chris-hanson/cph>
Sat, 22 Apr 1995 21:17:54 +0000 (21:17 +0000)
committerChris Hanson <org/chris-hanson/cph>
Sat, 22 Apr 1995 21:17:54 +0000 (21:17 +0000)
commitd08192bd4a74fdc5f65fa0a1c3a43c441ec231af
tree17a5806414a06efc353aca72b2ee33491070e89f
parentdfacb397b18d064bbde9f84d1708d97db47128db
Lock access to the twin of a qid more carefully.  Previously, the code
for sending messages was not locked at all, which meant that there
were race conditions that could produce fatal errors.  By locking, we
limit the amount of concurrent communication slightly, but since the
locks are active for only a short time this shouldn't be noticed.

Also implement a new procedure OS2_qid_tqueue, which is used by
inferior threads to obtain and close their associated tqueue objects
when they finish.
v7/src/microcode/os2msg.c
v7/src/microcode/os2msg.h