<feed xmlns='http://www.w3.org/2005/Atom'>
<title>musl/src/thread, branch v0.7.0</title>
<subtitle>musl - an implementation of the standard library for Linux-based systems</subtitle>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/'/>
<entry>
<title>implement dummy pthread_attr_[gs]etschedparam functions</title>
<updated>2011-03-11T14:51:54+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-03-11T14:51:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=243b542382990d8c2d0e5469ae68dfd622551a3e'/>
<id>243b542382990d8c2d0e5469ae68dfd622551a3e</id>
<content type='text'>
for some reason these functions are not shaded by the PS/TPS option in
POSIX, so presumably they are mandatory, even though the functionality
they offer is optional. for now, provide them in case any programs
depend on their existence, but disallow any priority except the
default.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
for some reason these functions are not shaded by the PS/TPS option in
POSIX, so presumably they are mandatory, even though the functionality
they offer is optional. for now, provide them in case any programs
depend on their existence, but disallow any priority except the
default.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix pthread_attr_* implementations to match corrected prototypes</title>
<updated>2011-03-11T14:51:14+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-03-11T14:51:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=1659aa0e62cf23f3007e01ad8ca7123d8e2b061e'/>
<id>1659aa0e62cf23f3007e01ad8ca7123d8e2b061e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix failure behavior of sem_open when sem does not exist</title>
<updated>2011-03-11T03:05:16+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-03-11T03:05:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=682a0f271f8b9a5842679a0f7070139a1f456c0d'/>
<id>682a0f271f8b9a5842679a0f7070139a1f456c0d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix some semaphore wait semantics (race condition deadlock and error checking)</title>
<updated>2011-03-11T02:52:18+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-03-11T02:52:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=cfe581b6bc795e3f00ac30791314ec0f9be4b4ad'/>
<id>cfe581b6bc795e3f00ac30791314ec0f9be4b4ad</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix sem_open and sem_close to obey posix semantics</title>
<updated>2011-03-11T02:34:19+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-03-11T02:34:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=81af503610761a69476a3adbe8341fa8b6d078aa'/>
<id>81af503610761a69476a3adbe8341fa8b6d078aa</id>
<content type='text'>
multiple opens of the same named semaphore must return the same
pointer, and only the last close can unmap it. thus the ugly global
state keeping track of mappings. the maximum number of distinct named
semaphores that can be opened is limited sufficiently small that the
linear searches take trivial time, especially compared to the syscall
overhead of these functions.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
multiple opens of the same named semaphore must return the same
pointer, and only the last close can unmap it. thus the ugly global
state keeping track of mappings. the maximum number of distinct named
semaphores that can be opened is limited sufficiently small that the
linear searches take trivial time, especially compared to the syscall
overhead of these functions.
</pre>
</div>
</content>
</entry>
<entry>
<title>optimize pthread termination in the non-detached case</title>
<updated>2011-03-10T23:31:37+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-03-10T23:31:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=5fcebcde6aeba6ae4a339790beba5331fbcd3b6e'/>
<id>5fcebcde6aeba6ae4a339790beba5331fbcd3b6e</id>
<content type='text'>
we can avoid blocking signals by simply using a flag to mark that the
thread has exited and prevent it from getting counted in the rsyscall
signal-pingpong. this restores the original pthread create/join
throughput from before the sigprocmask call was added.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
we can avoid blocking signals by simply using a flag to mark that the
thread has exited and prevent it from getting counted in the rsyscall
signal-pingpong. this restores the original pthread create/join
throughput from before the sigprocmask call was added.
</pre>
</div>
</content>
</entry>
<entry>
<title>security fix: check that cancel/rsyscall signal was sent by the process itself</title>
<updated>2011-03-10T16:59:39+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-03-10T16:59:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=52213f734134055968ef14bf54b71f0dd370763a'/>
<id>52213f734134055968ef14bf54b71f0dd370763a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix error handling for pthread_sigmask</title>
<updated>2011-03-10T01:31:06+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-03-10T01:31:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=500c969f059dc1b12dc3809d270cb169abbd57d3'/>
<id>500c969f059dc1b12dc3809d270cb169abbd57d3</id>
<content type='text'>
it must return errno, not -1, and should reject invalud values for how.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
it must return errno, not -1, and should reject invalud values for how.
</pre>
</div>
</content>
</entry>
<entry>
<title>optimize pthread initialization</title>
<updated>2011-03-10T01:21:23+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-03-10T01:21:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=6dc05fbe198ccb326dceb8f05ee943f9a4dfb4ba'/>
<id>6dc05fbe198ccb326dceb8f05ee943f9a4dfb4ba</id>
<content type='text'>
the set_tid_address returns the tid (which is also the pid when called
from the initial thread) so there is no need to make a separate
syscall to get pid/tid.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the set_tid_address returns the tid (which is also the pid when called
from the initial thread) so there is no need to make a separate
syscall to get pid/tid.
</pre>
</div>
</content>
</entry>
<entry>
<title>simplify and optimize pthread_mutex_trylock</title>
<updated>2011-03-08T17:20:10+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-03-08T17:20:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=31e06075d5a71b53461638ee871bfb6163e20dd5'/>
<id>31e06075d5a71b53461638ee871bfb6163e20dd5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
