Two changes to improve inter-thread message-transmission performance:
authorChris Hanson <org/chris-hanson/cph>
Sun, 11 May 1997 06:35:46 +0000 (06:35 +0000)
committerChris Hanson <org/chris-hanson/cph>
Sun, 11 May 1997 06:35:46 +0000 (06:35 +0000)
commita71217c72f5a4953174e0c9fa1e10bd33303be31
tree93fddd17f869e0153cb7c072a4a990185872c67e
parente889fdc23ac20d7e6f9322e3da10dd9e778f6274
Two changes to improve inter-thread message-transmission performance:

1. Eliminate "msg_list_t" type and implement a fifo abstraction that
   is powerful enough to support the previous applications of message
   lists.  This eliminates the calls to malloc and free that were
   needed to build the lists, and replaces them by an aggregate,
   amortized cost.

2. When transmitting a message for which a receiving thread is
   waiting, call DosSleep to give up the rest of the transmitting
   thread's time slice, so that the receiving thread will run as soon
   as possible.
v7/src/microcode/os2conio.c
v7/src/microcode/os2cthrd.c
v7/src/microcode/os2cthrd.h
v7/src/microcode/os2msg.c
v7/src/microcode/os2msg.h
v7/src/microcode/os2pmcon.c