<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/include/pthread.h, branch release/4.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F4.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F4.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2000-02-20T07:40:25Z</updated>
<entry>
<title>Do not conditionalize function prototype definition for functions we</title>
<updated>2000-02-20T07:40:25Z</updated>
<author>
<name>Jason Evans</name>
<email>jasone@FreeBSD.org</email>
</author>
<published>2000-02-20T07:40:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=60ad8853e047340483b4f050d191b9d133b71e34'/>
<id>urn:sha1:60ad8853e047340483b4f050d191b9d133b71e34</id>
<content type='text'>
implement.

Noticed by:	Thimble Smith &lt;tim@mysql.com&gt;
Approved by:	jkh
</content>
</entry>
<entry>
<title>Make sched_param parameter a const to comply with POSIX and SUSv2 specs.</title>
<updated>2000-01-10T04:14:08Z</updated>
<author>
<name>Daniel Eischen</name>
<email>deischen@FreeBSD.org</email>
</author>
<published>2000-01-10T04:14:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3eadb69d1fc9c74dd58c04ae789550a77fc53c08'/>
<id>urn:sha1:3eadb69d1fc9c74dd58c04ae789550a77fc53c08</id>
<content type='text'>
This doesn't need to be applied to stable, because somehow -stable seems
to have gotten it right.

Reviewed by:	jasone
</content>
</entry>
<entry>
<title>Fix some minor POSIX/SUSv2 compliance nits.</title>
<updated>1999-12-18T01:00:42Z</updated>
<author>
<name>Jason Evans</name>
<email>jasone@FreeBSD.org</email>
</author>
<published>1999-12-18T01:00:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=386812d440d0d5a37b4dbed04202c2524693a8a3'/>
<id>urn:sha1:386812d440d0d5a37b4dbed04202c2524693a8a3</id>
<content type='text'>
PR:		kern/11982
</content>
</entry>
<entry>
<title>Move POSIX feature constants from pthread.h to unistd.h, as required by</title>
<updated>1999-12-16T21:53:39Z</updated>
<author>
<name>Jason Evans</name>
<email>jasone@FreeBSD.org</email>
</author>
<published>1999-12-16T21:53:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=346b6c5db8529e329f3ab4e161a75d8a3ddefdef'/>
<id>urn:sha1:346b6c5db8529e329f3ab4e161a75d8a3ddefdef</id>
<content type='text'>
1003.1c-1995.

Undefine _POSIX_THREAD_SAFE_FUNCTIONS, since we do not implement all of the
necessary interfaces.  At least getgrgid_r(), getrnam_r(), getpwuid_r(),
getpwnam_r(), getc_unlocked(), getchar_unlocked(), putc_unlocked(),
and putchar_unlocked() are missing.  Due to a likely typo in 1003.1c-1995,
we are not technically allowed to define _POSIX_THREADS without defining
_POSIX_THREAD_SAFE_FUNCTIONS, but either way we're non-compliant, so I'm
leaving _POSIX_THREADS defined.

PR:		bin/8281
</content>
</entry>
<entry>
<title>add pthread_cancel, obtained from OpenBSD.</title>
<updated>1999-11-28T05:38:13Z</updated>
<author>
<name>Alfred Perlstein</name>
<email>alfred@FreeBSD.org</email>
</author>
<published>1999-11-28T05:38:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7285bccf1a9224fadd3b7b81be034cd04f35a820'/>
<id>urn:sha1:7285bccf1a9224fadd3b7b81be034cd04f35a820</id>
<content type='text'>
eischen (Daniel Eischen) added wrappers to protect against cancled
threads orphaning internal resources.

the cancelability code is still a bit fuzzy but works for test
programs of my own, OpenBSD's and some examples from ORA's books.

add readdir_r to both libc and libc_r

add some 'const' attributes to function parameters

Reviewed by: eischen, jasone
</content>
</entry>
<entry>
<title>$Id$ -&gt; $FreeBSD$</title>
<updated>1999-08-27T23:45:13Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1999-08-27T23:45:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a4add9a9b110cb5deed00bf9cf7ca970daae2da7'/>
<id>urn:sha1:a4add9a9b110cb5deed00bf9cf7ca970daae2da7</id>
<content type='text'>
</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>Hide pthread cancellation routines behind #ifdef NOT_YET.  They are</title>
<updated>1999-07-27T03:29:01Z</updated>
<author>
<name>Daniel Eischen</name>
<email>deischen@FreeBSD.org</email>
</author>
<published>1999-07-27T03:29:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5b90d09f8a789a582ad31294d7df6e6d932e5db2'/>
<id>urn:sha1:5b90d09f8a789a582ad31294d7df6e6d932e5db2</id>
<content type='text'>
not currently supported.  Also corrected the declaration for
pthread_testcancel which incorrectly returned int when POSIX and
SUSv2 both say it should be void.

Submitted by:	Ralf S. Engelschall &lt;rse@engelschall.com&gt;
Reviewed by:	John Birrell &lt;jb@freebsd.org&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>
<entry>
<title>Add support for pthread_mutexattr_settype().  As a side effect of</title>
<updated>1998-11-28T23:52:58Z</updated>
<author>
<name>Eivind Eklund</name>
<email>eivind@FreeBSD.org</email>
</author>
<published>1998-11-28T23:52:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=07bab7c6a453b22c82640c95d82d3fff896d0671'/>
<id>urn:sha1:07bab7c6a453b22c82640c95d82d3fff896d0671</id>
<content type='text'>
testing this, fix MUTEX_TYPE_COUNTING_FAST.  Recursive locks now work.
</content>
</entry>
</feed>
