Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Oct 2007 11:42:04 -0700
From:      Alfred Perlstein <alfred@freebsd.org>
To:        threads@freebsd.org
Subject:   Lack of usable thread_exit(9) api painful.
Message-ID:  <20071022184203.GU31826@elvis.mu.org>

next in thread | raw e-mail | index | archive | help
Hey guys,

I'm trying to develop a feature here and I'm getting hit pretty
hard by not having a very useable API for doing things when a thread
is torn down.

I basically need to do a vsunlock(9) on some of the process's memory,
however doing that is proving difficult as thread_exit(9) requires
sched and proc locks going in which appear to need to be held throughout
the function in order to function properly.

Does anyone have any ideas?

I'm probably going to hook into the reaper thread that kills thread
contexts, and hopefully that should be enough to get it right, but
I'm not 100% sure.

ouch.

-- 
- Alfred Perlstein



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071022184203.GU31826>