[PATCH] context switch callback enhancement for state_threads.

Alfred Perlstein <[email protected]> Wed, 19 Jan 2005 15:52:44 -0800
Newsgroups gmane.comp.lib.state-threads.devel
Message-ID <[email protected]>
We have an app here at Yahoo and we need to know when threads switch
to each other.  I have put together a patch against 1.5.1 here:

http://www.mu.org/~bright/stuff/st.diff

It allows one to set callbacks for when a thread is switched in and
out under st threads.

Documentation has also been updated to reflect the new functions.

Right now we're using it for profiling, but there's a lot of
other potential uses for using this code to extend st_threads.

I'd like to keep it under the "normal" build as runtime enabling
of these callbacks can be effecient as there's only a single pointer
check when they are not enabled.

thank you!

-- 
- Alfred Perlstein <alfredp at yahoo-inc.com>


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl