History log of /netbsd-src/lib/libpthread/pthread_attr.c (Results 1 – 21 of 21)
Revision Date Author Comments
# 568eb77e 10-Apr-2022 riastradh <riastradh@NetBSD.org>

pthread: Nix trailing whitespace.


# 7adb4107 12-Feb-2022 riastradh <riastradh@NetBSD.org>

libpthread: Move namespacing include to top of .c files.

Stuff like libc's namespace.h, or atomic_op_namespace.h, which does
namespacing tricks like `#define atomic_cas_uint _atomic_cas_uint',
has t

libpthread: Move namespacing include to top of .c files.

Stuff like libc's namespace.h, or atomic_op_namespace.h, which does
namespacing tricks like `#define atomic_cas_uint _atomic_cas_uint',
has to go at the top of each .c file. If it goes in the middle, it
might be too late to affect the declarations, and result in compile
errors.

I tripped over this by including <sys/atomic.h> in mips
<machine/lock.h>.

(Maybe we should create a new pthread_namespace.h file for the
purpose, but this'll do for now.)

show more ...


# b3401c13 29-Jan-2020 kamil <kamil@NetBSD.org>

Use the pta_magic field in pthread attribute

Set PT_ATTR_DEAD on pthread_attr_destroy().
Check pta_magic before using pthread_attr_t in a bunch of other functions.


# 7f878ea3 01-Aug-2017 martin <martin@NetBSD.org>

pthread__attr_init_private:
malloc+memset -> calloc. Also initialize all values to the proper
defaults.
This fixes the "rustc panic" discussed on pkgsrc-users.
OK: joerg


# 5f391f4a 02-Jul-2017 joerg <joerg@NetBSD.org>

Export the guard size of the main thread via vm.guard_size. Add a
complementary writable sysctl for the initial guard size of threads
created via pthread_create. Let the existing attribut accessors d

Export the guard size of the main thread via vm.guard_size. Add a
complementary writable sysctl for the initial guard size of threads
created via pthread_create. Let the existing attribut accessors do the
right thing. Raise the default guard size for threads to 64KB.

show more ...


# a5644095 02-Mar-2012 joerg <joerg@NetBSD.org>

Separate pthread_t from thread stack. Drop additional alignment
restrictions on the thread stack. Remove remaining parts of stackid.


# 5861d73f 06-Aug-2010 christos <christos@NetBSD.org>

move namespace protection before inclusion.


# e8deba04 06-Aug-2010 christos <christos@NetBSD.org>

Add a weak alias for pthread_attr_get_np. Noted my Matthias Drochner.


# 32d8a489 06-Aug-2010 christos <christos@NetBSD.org>

Add pthread_getattr_np()


# a06595c2 18-Jan-2009 lukem <lukem@NetBSD.org>

fix -Wsign-compare issues


# 6f7d0483 10-Oct-2008 ad <ad@NetBSD.org>

pthread_attr_getschedparam: allow without preceding setparam on the
attr structure.


# cbd43ffa 28-Jun-2008 ad <ad@NetBSD.org>

Now that we have all the scheduling gunk, make these do something useful:

pthread_attr_get_np
pthread_attr_setschedparam
pthread_attr_getschedparam
pthread_attr_setschedpolicy
pthread_attr_getschedp

Now that we have all the scheduling gunk, make these do something useful:

pthread_attr_get_np
pthread_attr_setschedparam
pthread_attr_getschedparam
pthread_attr_setschedpolicy
pthread_attr_getschedpolicy

show more ...


# 403a3991 25-Jun-2008 ad <ad@NetBSD.org>

pthread_attr_setstacksize: EINVAL if the requested size is less than
sysconf(_SC_THREAD_STACK_MIN).


# ce099b40 28-Apr-2008 martin <martin@NetBSD.org>

Remove clause 3 and 4 from TNF licenses


# c6409540 08-Jan-2008 christos <christos@NetBSD.org>

add missing static decls.


# 9e287199 16-Aug-2007 ad <ad@NetBSD.org>

Remove PT_FIXEDSTACKSIZE_LG.


# 21eb6bba 21-Sep-2005 tv <tv@NetBSD.org>

pthread_attr_getschedpolicy() wasn't setting the return buffer at all.
SCHED_OTHER happens to be 0, so this assignment to "int *" succeeds,
and becomes a no-op.

Fix by dereferencing "policy" to do t

pthread_attr_getschedpolicy() wasn't setting the return buffer at all.
SCHED_OTHER happens to be 0, so this assignment to "int *" succeeds,
and becomes a no-op.

Fix by dereferencing "policy" to do the assignment, thus filling the
return buffer with 0.

show more ...


# fae5965c 29-Dec-2004 nathanw <nathanw@NetBSD.org>

Implement pthread_attr_{set,get}schedpolicy() at the same level as the other
scheduling stuff: only handle SCHED_OTHER. Like the rest of the scheduling
stuff, this is for the benefit of code that can

Implement pthread_attr_{set,get}schedpolicy() at the same level as the other
scheduling stuff: only handle SCHED_OTHER. Like the rest of the scheduling
stuff, this is for the benefit of code that can't be bothered to test against
_POSIX_THREAD_PRIORITY_SCHEDULING.

show more ...


# 38b1c6f4 09-Nov-2003 christos <christos@NetBSD.org>

Add:

int pthread_attr_setcreatesuspend_np(pthread_attr_t *);
int pthread_suspend_np(pthread_t);
int pthread_resume_np(pthread_t);

needed for java. Approved and fixed by cl.


# 338cc5f6 11-Sep-2003 christos <christos@NetBSD.org>

sprinkle ARGSUSED for good cheer.


# ec2c1698 18-Jul-2003 nathanw <nathanw@NetBSD.org>

pthread.c was getting a bit unwieldly. Move pthread_attr stuff out
into a new file, and put the shared private structure definition in
pthread_int.h.