]> Zhao Yanbai Git Server - minix.git/commit
Preserve the order of IPC messages between two parties.
authorCristiano Giuffrida <cristiano@minix3.org>
Sat, 27 Mar 2010 00:09:22 +0000 (00:09 +0000)
committerCristiano Giuffrida <cristiano@minix3.org>
Sat, 27 Mar 2010 00:09:22 +0000 (00:09 +0000)
commit9192dbecc932ac9b87e954b9adcf177aeb8e8739
treed361c1ea76b386671d5f10582110f184e7b92a1b
parent8e5a82fd4949dc8edf273574cfecfff3274d9257
Preserve the order of IPC messages between two parties.

Currently a sequence of messages between a sender A and a receiver B of the
form: A.asynsend(M1, B); A.send(M2, B) may result in the receiver receiving
M1 first and then M2 or viceversa. This patch makes sure that the original
order M1, M2 is always preserved.

Note that the order of a hypotetical sequence A.asynsend(M1, B);
A.asynsend(M2, B) is already guaranteed by the implementation of
asynsend by design. Other senda-based wrappers can define their own
semantics.
kernel/proc.c