cvs commit: src/sys/sys msgport.h msgport2.h thread.h
Matthew Dillon
dillon at crater.dragonflybsd.org
Sat Jul 19 18:37:47 PDT 2003
dillon 2003/07/19 18:37:23 PDT
Modified files:
sys/sys thread.h
Added files:
sys/sys msgport.h msgport2.h
Log:
This is the initial implmentation of the LWKT messaging infrastructure.
Messages are sent to message ports and typically replied to a message port
embedded in the originating thread's thread structure (td_msgport).
The port functions match up and optimization client sync/asynch requests
verses target synch/asynch responses.
In this initial implementation a port must be owned by a particular thread,
and we use *asynch* IPI messaging to forward queueing and dequeueing operations
to the correct cpu. Most of the IPI overhead will be absorbed by the fact
that these same IPIs also tend to schedule the threads in question, which on
the correct cpu (which is the one it will be on) costs nothing.
Message ports have in-context dispatch functions for initiating, aborting,
and replying to a message which can be overriden and will queue by default.
This code compiles but is as yet unreferenced, and almost certainly needs more
work.
Revision Changes Path
1.25 +8 -29 src/sys/sys/thread.h
More information about the Commits
mailing list