<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/include/pthread_np.h, branch release/6.3.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F6.3.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F6.3.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2003-01-07T21:43:30Z</updated>
<entry>
<title>pthread_attr_get_np() now takes 'pthread_t' (not 'pthread_t *')</title>
<updated>2003-01-07T21:43:30Z</updated>
<author>
<name>Max Khon</name>
<email>fjoe@FreeBSD.org</email>
</author>
<published>2003-01-07T21:43:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f7ed1917e210382625eb2149604950681664dd11'/>
<id>urn:sha1:f7ed1917e210382625eb2149604950681664dd11</id>
<content type='text'>
to be consistent with other pthread_XXX functions
</content>
</entry>
<entry>
<title>Prototype for pthread_attr_get_np().</title>
<updated>2002-10-26T13:58:12Z</updated>
<author>
<name>Alexey Zelkin</name>
<email>phantom@FreeBSD.org</email>
</author>
<published>2002-10-26T13:58:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=49d7a091acb496c1a2ea818fafe12922060278d4'/>
<id>urn:sha1:49d7a091acb496c1a2ea818fafe12922060278d4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix pthread_suspend/resume_all_np() declarations</title>
<updated>2002-10-22T17:11:49Z</updated>
<author>
<name>Max Khon</name>
<email>fjoe@FreeBSD.org</email>
</author>
<published>2002-10-22T17:11:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=943dffc85dad21cd3b1da82cb012bff10f949dc3'/>
<id>urn:sha1:943dffc85dad21cd3b1da82cb012bff10f949dc3</id>
<content type='text'>
Approved by:	deischen
</content>
</entry>
<entry>
<title>Reorder prototypes to be in alphabetical order.</title>
<updated>2002-05-24T04:35:55Z</updated>
<author>
<name>Daniel Eischen</name>
<email>deischen@FreeBSD.org</email>
</author>
<published>2002-05-24T04:35:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=04249148fb69b4a2aa693e3ea0c747a5be3dc20f'/>
<id>urn:sha1:04249148fb69b4a2aa693e3ea0c747a5be3dc20f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add the prototypes for pthread_suspend_all_np and pthread_resume_all_np.</title>
<updated>2002-05-24T04:33:07Z</updated>
<author>
<name>Daniel Eischen</name>
<email>deischen@FreeBSD.org</email>
</author>
<published>2002-05-24T04:33:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9de68a9f4cd4bbdbe730cdfe126276ee72a4e8e0'/>
<id>urn:sha1:9de68a9f4cd4bbdbe730cdfe126276ee72a4e8e0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Breath deep and take __P out of the system include files.</title>
<updated>2002-03-23T17:24:55Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2002-03-23T17:24:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bb28f3c29b4c91af1b0e79e456294bb08735648a'/>
<id>urn:sha1:bb28f3c29b4c91af1b0e79e456294bb08735648a</id>
<content type='text'>
# This appears to not break X11, but I'm having problems compiling the
# glide part of the server with or without this patch, so I can't tell
# for sure.
</content>
</entry>
<entry>
<title>Make the name parameter const char *.</title>
<updated>2001-08-11T05:16:00Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2001-08-11T05:16:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e54b5dd9ff9eefcecb90af381b5e3cd8efd8f230'/>
<id>urn:sha1:e54b5dd9ff9eefcecb90af381b5e3cd8efd8f230</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) and</title>
<updated>2001-03-19T12:50:13Z</updated>
<author>
<name>Alfred Perlstein</name>
<email>alfred@FreeBSD.org</email>
</author>
<published>2001-03-19T12:50:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8360efbd6c932013ffdb2f83d2f2de4278febb5e'/>
<id>urn:sha1:8360efbd6c932013ffdb2f83d2f2de4278febb5e</id>
<content type='text'>
associated changes that had to happen to make this possible as well as
bugs fixed along the way.

  Bring in required TLI library routines to support this.

  Since we don't support TLI we've essentially copied what NetBSD
  has done, adding a thin layer to emulate direct the TLI calls
  into BSD socket calls.

  This is mostly from Sun's tirpc release that was made in 1994,
  however some fixes were backported from the 1999 release (supposedly
  only made available after this porting effort was underway).

  The submitter has agreed to continue on and bring us up to the
  1999 release.

  Several key features are introduced with this update:
    Client calls are thread safe. (1999 code has server side thread
    safe)
    Updated, a more modern interface.

  Many userland updates were done to bring the code up to par with
  the recent RPC API.

  There is an update to the pthreads library, a function
  pthread_main_np() was added to emulate a function of Sun's threads
  library.

  While we're at it, bring in NetBSD's lockd, it's been far too
  long of a wait.

  New rpcbind(8) replaces portmap(8) (supporting communication over
  an authenticated Unix-domain socket, and by default only allowing
  set and unset requests over that channel). It's much more secure
  than the old portmapper.

  Umount(8), mountd(8), mount_nfs(8), nfsd(8) have also been upgraded
  to support TI-RPC and to support IPV6.

  Umount(8) is also fixed to unmount pathnames longer than 80 chars,
  which are currently truncated by the Kernel statfs structure.

Submitted by: Martin Blapp &lt;mb@imp.ch&gt;
Manpage review: ru
Secure RPC implemented by: wpaul
</content>
</entry>
<entry>
<title>Cleanups to the pthread header files.</title>
<updated>1999-07-31T08:36:07Z</updated>
<author>
<name>Ralf S. Engelschall</name>
<email>rse@FreeBSD.org</email>
</author>
<published>1999-07-31T08:36:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=026cb3a62c7d6159b96d512609b5ed16759119e6'/>
<id>urn:sha1:026cb3a62c7d6159b96d512609b5ed16759119e6</id>
<content type='text'>
Submitted by:   Ralf S. Engelschall &lt;rse@engelschall.com&gt;
Reviewed by:    John Birrell &lt;jb@cimlogic.com.au&gt;
</content>
</entry>
<entry>
<title>  o Runnable threads are now maintained in priority queues.  The</title>
<updated>1999-03-23T05:11:30Z</updated>
<author>
<name>John Birrell</name>
<email>jb@FreeBSD.org</email>
</author>
<published>1999-03-23T05:11:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b847980f1531b6a497fb7601bb2f9dec7d88a681'/>
<id>urn:sha1:b847980f1531b6a497fb7601bb2f9dec7d88a681</id>
<content type='text'>
    implementation requires two things:

      1.) The priority queues must be protected during insertion
          and removal of threads.  Since the kernel scheduler
          must modify the priority queues, a spinlock for
          protection cannot be used.   The functions
          _thread_kern_sched_defer() and _thread_kern_sched_undefer()
          were added to {un}defer kernel scheduler activation.

      2.) A thread (active) priority change can be performed only
          when the thread is removed from the priority queue.  The
          implementation uses a threads active priority when
          inserting it into the queue.

    A by-product is that thread switches are much faster.  A
    separate queue is used for waiting and/or blocked threads,
    and it is searched at most 2 times in the kernel scheduler
    when there are active threads.  It should be possible to
    reduce this to once by combining polling of threads waiting
    on I/O with the loop that looks for timed out threads and
    the minimum timeout value.

  o Functions to defer kernel scheduler activation were added.  These
    are _thread_kern_sched_defer() and _thread_kern_sched_undefer()
    and may be called recursively.  These routines do not block the
    scheduling signal, but latch its occurrence.  The signal handler
    will not call the kernel scheduler when the running thread has
    deferred scheduling, but it will be called when running thread
    undefers scheduling.

  o Added support for _POSIX_THREAD_PRIORITY_SCHEDULING.  All the
    POSIX routines required by this should now be implemented.
    One note, SCHED_OTHER, SCHED_FIFO, and SCHED_RR are required
    to be defined by including pthread.h.  These defines are currently
    in sched.h.  I modified pthread.h to include sched.h but don't
    know if this is the proper thing to do.

  o Added support for priority protection and inheritence mutexes.
    This allows definition of _POSIX_THREAD_PRIO_PROTECT and
    _POSIX_THREAD_PRIO_INHERIT.

  o Added additional error checks required by POSIX for mutexes and
    condition variables.

  o Provided a wrapper for sigpending which is marked as a hidden
    syscall.

  o Added a non-portable function as a debugging aid to allow an
    application to monitor thread context switches.  An application
    can install a routine that gets called everytime a thread
    (explicitly created by the application) gets context switched.
    The routine gets passed the pthread IDs of the threads that are
    being switched in and out.  I found this useful, but we can
    get rid of it if you want.

Submitted by: Dan Eischen &lt;eischen@vigrid.com&gt;
</content>
</entry>
</feed>
