<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libthr/thread, branch release/5.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F5.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F5.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2005-02-05T01:02:51Z</updated>
<entry>
<title>MFC:</title>
<updated>2005-02-05T01:02:51Z</updated>
<author>
<name>David Schultz</name>
<email>das@FreeBSD.org</email>
</author>
<published>2005-02-05T01:02:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=af8730a1d8018566e88d6d72ac2e6fbf60b21944'/>
<id>urn:sha1:af8730a1d8018566e88d6d72ac2e6fbf60b21944</id>
<content type='text'>
  2004-11-27 06:51:39 UTC
  Don't include sys/user.h merely for its side-effect of recursively
  including other headers.
</content>
</entry>
<entry>
<title>----------------------------</title>
<updated>2004-10-09T15:37:42Z</updated>
<author>
<name>Mike Makonnen</name>
<email>mtm@FreeBSD.org</email>
</author>
<published>2004-10-09T15:37:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=199531033f3fc14fdcc09b2dfb319c01bf2bc571'/>
<id>urn:sha1:199531033f3fc14fdcc09b2dfb319c01bf2bc571</id>
<content type='text'>
revision 1.41
date: 2004/09/16 13:55:46;  author: mtm;  state: Exp;  lines: +21 -0
Implement cancellation points in libc interfaces, as specified by POSIX.
=============================================================================

Approved by: re/scottl
</content>
</entry>
<entry>
<title>----------------------------</title>
<updated>2004-10-09T15:13:50Z</updated>
<author>
<name>Mike Makonnen</name>
<email>mtm@FreeBSD.org</email>
</author>
<published>2004-10-09T15:13:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8bc61b56c6214408a374d76d5636e4b1d8329662'/>
<id>urn:sha1:8bc61b56c6214408a374d76d5636e4b1d8329662</id>
<content type='text'>
revision 1.32
date: 2004/09/22 18:51:16;  author: mtm;  state: Exp;  lines: +1 -14
Remove vestiges of libthr's signal mangling past. This fixes that last
known problem with mysql on libthr: not being able to kill mysqld.
----------------------------
revision 1.31
date: 2004/09/22 16:53:23;  author: mtm;  state: Exp;  lines: +6 -27
The SUSv3 function say that the affected functions MAY FAIL, if the
specified mutex is invalid. In spec parlance 'MAY FAIL' means it's
up to the implementor. So, remove the check for NULL pointers for two
reasons:
	1. A mutex may be invalid without necessarily being NULL.
	2. If the pointer to the mutex is NULL core-dumping in the
	   vicinity of the problem is much much much better than failing
	   in some other part of the code (especially when the application
	   doesn't check the return value of the function that you oh so
	   helpfully set to EINVAL).
=============================================================================

Approved by: re/scottl
</content>
</entry>
<entry>
<title>MFC:</title>
<updated>2004-10-09T15:12:33Z</updated>
<author>
<name>Mike Makonnen</name>
<email>mtm@FreeBSD.org</email>
</author>
<published>2004-10-09T15:12:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=101596b827d3570cefefd0b8a26a0e2e5cb7c23f'/>
<id>urn:sha1:101596b827d3570cefefd0b8a26a0e2e5cb7c23f</id>
<content type='text'>
----------------------------
revision 1.15
date: 2004/10/08 14:48:02;  author: mtm;  state: Exp;  lines: +1 -4
Remove a reference to a non-existent syscall: _thr_exit(). The
actual name is thr_exit(). How this ever worked is beyond me.
----------------------------
revision 1.14
date: 2004/10/06 14:20:57;  author: mtm;  state: Exp;  lines: +2 -3
Close a race between a thread exiting and the freeing of it's stack.
After some discussion the best option seems to be to signal the thread's
death from within the kernel. This requires that thr_exit() take an
argument.

Discussed with: davidxu, deischen, marcel
MFC after: 3 days
=============================================================================

Approved by: re/scottl
</content>
</entry>
<entry>
<title>o Assertions to catch that stuff that shouldn't happen is not happening.</title>
<updated>2004-07-30T17:13:00Z</updated>
<author>
<name>Mike Makonnen</name>
<email>mtm@FreeBSD.org</email>
</author>
<published>2004-07-30T17:13:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0feabab57605c9aa17680949ff3bdf61ed056a32'/>
<id>urn:sha1:0feabab57605c9aa17680949ff3bdf61ed056a32</id>
<content type='text'>
o In the rwlock code: move a duplicated check inside an if..else to after
  the if...else clause.
o When initializing a static rwlock move the initialization check
  inside the lock.
o In thr_setschedparam.c: When breaking out of the trylock...retry if busy
  loop make sure to reset the mtx pointer to null if the mutex is nolonger
  in a queue.
</content>
</entry>
<entry>
<title>Define _libthr_debug for use by libthread_db.</title>
<updated>2004-07-18T04:23:30Z</updated>
<author>
<name>Marcel Moolenaar</name>
<email>marcel@FreeBSD.org</email>
</author>
<published>2004-07-18T04:23:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7ea419c0cf5073ac628341629b6987a499b716dc'/>
<id>urn:sha1:7ea419c0cf5073ac628341629b6987a499b716dc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Record the offset of thr_id in the thread structure. Required for</title>
<updated>2004-07-04T19:07:07Z</updated>
<author>
<name>Marcel Moolenaar</name>
<email>marcel@FreeBSD.org</email>
</author>
<published>2004-07-04T19:07:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cc7be8dc05cb75b05941f827faa63b921f4122c2'/>
<id>urn:sha1:cc7be8dc05cb75b05941f827faa63b921f4122c2</id>
<content type='text'>
debugging.
</content>
</entry>
<entry>
<title>Change the thread ID (thr_id_t) used for 1:1 threading from being a</title>
<updated>2004-07-02T00:40:07Z</updated>
<author>
<name>Marcel Moolenaar</name>
<email>marcel@FreeBSD.org</email>
</author>
<published>2004-07-02T00:40:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cd28f17da2f89e4e3f6dc3874912ac7e1947cfc0'/>
<id>urn:sha1:cd28f17da2f89e4e3f6dc3874912ac7e1947cfc0</id>
<content type='text'>
pointer to the corresponding struct thread to the thread ID (lwpid_t)
assigned to that thread. The primary reason for this change is that
libthr now internally uses the same ID as the debugger and the kernel
when referencing to a kernel thread. This allows us to implement the
support for debugging without additional translations and/or mappings.

To preserve the ABI, the 1:1 threading syscalls, including the umtx
locking API have not been changed to work on a lwpid_t. Instead the
1:1 threading syscalls operate on long and the umtx locking API has
not been changed except for the contested bit. Previously this was
the least significant bit. Now it's the most significant bit. Since
the contested bit should not be tested by userland, this change is
not expected to be visible. Just to be sure, UMTX_CONTESTED has been
removed from &lt;sys/umtx.h&gt;.

Reviewed by: mtm@
ABI preservation tested on: i386, ia64
</content>
</entry>
<entry>
<title>When a thread is created suspended have libthr suspend it explicitly</title>
<updated>2004-06-30T15:57:36Z</updated>
<author>
<name>Mike Makonnen</name>
<email>mtm@FreeBSD.org</email>
</author>
<published>2004-06-30T15:57:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=105711487ef4e356a7522fef4a8b942caae34c52'/>
<id>urn:sha1:105711487ef4e356a7522fef4a8b942caae34c52</id>
<content type='text'>
instead of asking the kernel to do it when we create the thread.
</content>
</entry>
<entry>
<title>Implement pthread_atfork in libthr. This is mostly from deichen's</title>
<updated>2004-06-27T10:01:35Z</updated>
<author>
<name>Mike Makonnen</name>
<email>mtm@FreeBSD.org</email>
</author>
<published>2004-06-27T10:01:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=03d74100cf60c2a9ddd8029c3fb12942fde43001'/>
<id>urn:sha1:03d74100cf60c2a9ddd8029c3fb12942fde43001</id>
<content type='text'>
work in libpthread.

Submitted by: Dan Nelson &lt;dnelson@allantgroup.com&gt;
</content>
</entry>
</feed>
