OpenZFS on Linux and FreeBSD
Go to file
Brian Behlendorf 864e44e7e0 Provide correct kthread API semantics using pthreads.
The intent here is to fully remove the previous Solaris thread
implementation so we don't need to simulate both Solaris kernel
and user space thread APIs.  The few user space consumers of the
thread API have been updated to use the kthread API.  In order
to support this we needed to more fully support the kthread API
and that means not doing crazy things like casting a thread id
to a pointer and using that as was done before.  This first
implementation is not effecient but it does provide all the
corrent semantics.  If/when performance becomes and issue we
can and should just natively adopt pthreads which is portable.

Let me finish by saying I'm not proud of any of this and I would
love to see it improved.  However, this slow implementation does
at least provide all the correct kthread API semantics whereas
the previous method of casting the thread ID to a pointer was
dodgy at best.
2009-07-14 14:16:26 -07:00
cmd Provide correct kthread API semantics using pthreads. 2009-07-14 14:16:26 -07:00
doc Finish removing all non-upstream bits from master 2008-12-01 16:15:29 -08:00
lib Provide correct kthread API semantics using pthreads. 2009-07-14 14:16:26 -07:00
module Provide correct kthread API semantics using pthreads. 2009-07-14 14:16:26 -07:00
scripts Add unicode library 2009-01-05 12:03:23 -08:00
.topdeps Add 'feature-pthreads' branch to features branch. 2009-03-19 20:49:52 -07:00
.topmsg Add 'feature-pthreads' branch to features branch. 2009-03-19 20:49:52 -07:00
COPYING Relocate COPYING+COPYRIGHT, remove README cruft 2008-12-01 15:34:53 -08:00
COPYRIGHT Relocate COPYING+COPYRIGHT, remove README cruft 2008-12-01 15:34:53 -08:00
DISCLAIMER Initial Linux ZFS GIT Repo 2008-11-20 12:01:55 -08:00
GIT Refresh type in topgit git://* reference 2009-01-26 21:58:32 -08:00
OPENSOLARIS.LICENSE Add CDDL license file 2008-12-01 14:49:34 -08:00
ZFS.RELEASE Rebase master to b117 2009-07-02 15:44:48 -07:00