kamil
b3401c13c3
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.
2020-01-29 13:47:31 +00:00
martin
7f878ea30c
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
2017-08-01 12:31:45 +00:00
joerg
5f391f4ae2
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.
2017-07-02 16:41:32 +00:00
joerg
a56440951d
Separate pthread_t from thread stack. Drop additional alignment
...
restrictions on the thread stack. Remove remaining parts of stackid.
2012-03-02 18:06:05 +00:00
christos
5861d73fd7
move namespace protection before inclusion.
2010-08-06 15:21:50 +00:00
christos
e8deba048f
Add a weak alias for pthread_attr_get_np. Noted my Matthias Drochner.
2010-08-06 14:23:06 +00:00
christos
32d8a48951
Add pthread_getattr_np()
2010-08-06 05:25:02 +00:00
lukem
a06595c27b
fix -Wsign-compare issues
2009-01-18 12:14:16 +00:00
ad
6f7d0483cf
pthread_attr_getschedparam: allow without preceding setparam on the
...
attr structure.
2008-10-10 09:13:20 +00:00
ad
cbd43ffa55
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
2008-06-28 10:29:37 +00:00
ad
403a399142
pthread_attr_setstacksize: EINVAL if the requested size is less than
...
sysconf(_SC_THREAD_STACK_MIN).
2008-06-25 11:07:07 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
christos
c6409540ef
add missing static decls.
2008-01-08 20:56:08 +00:00
ad
9e28719960
Remove PT_FIXEDSTACKSIZE_LG.
2007-08-16 01:09:34 +00:00
tv
21eb6bbacb
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.
2005-09-21 15:27:14 +00:00
nathanw
fae5965c52
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.
2004-12-29 00:59:57 +00:00
christos
38b1c6f405
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.
2003-11-09 18:56:48 +00:00
christos
338cc5f663
sprinkle ARGSUSED for good cheer.
2003-09-11 21:51:57 +00:00
nathanw
ec2c169839
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.
2003-07-18 22:33:45 +00:00