The NetBSD Project

CVS log for src/lib/libpthread/pthread.h

[BACK] Up to [cvs.NetBSD.org] / src / lib / libpthread

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.38.6.1 / (download) - annotate - [select for diffs], Sun Feb 25 23:55:50 2018 UTC (10 months, 3 weeks ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.38: +1 -3 lines
Diff to previous 1.38 (colored) next main 1.39 (colored)

Pull up following revision(s) (requested by kamil in ticket #562):
	lib/libpthread/pthread.h: 1.41
Remove namespace restriction from pthread_condattr_{g,s}etclock(3)
These functions were marked as _NETBSD_SOURCE when introduced to the
sources. In fact they are regular POSIX threading functions available
since the 2001 standard. There is an older mention about alignment with
"IEEE Std 1003.1j-2000".
This corrects usage of these functions when a source code is compiled
with a POSIX namespace option.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Feb 20 05:10:51 2018 UTC (11 months ago) by kamil
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi, pgoyette-compat-base, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, HEAD
Changes since 1.40: +1 -3 lines
Diff to previous 1.40 (colored)

Remove namespace restriction from pthread_condattr_{g,s}etclock(3)

These functions were marked as _NETBSD_SOURCE when introduced to the
sources. In fact they are regular POSIX threading functions available
since the 2001 standard. There is an older mention about alignment with
"IEEE Std 1003.1j-2000".

This corrects usage of these functions when a source code is compiled
with a POSIX namespace option.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Feb 6 20:22:23 2018 UTC (11 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.39: +4 -1 lines
Diff to previous 1.39 (colored)

fix duplicate declaration of pthread_atfork in unistd.h

Revision 1.39 / (download) - annotate - [select for diffs], Tue Dec 26 17:00:50 2017 UTC (12 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.38: +3 -1 lines
Diff to previous 1.38 (colored)

Needs to be protected since it has a timespec argument. Found by lint(1)

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Fri Nov 4 14:48:54 2016 UTC (2 years, 2 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

Sync with HEAD

Revision 1.38 / (download) - annotate - [select for diffs], Sun Oct 30 23:26:33 2016 UTC (2 years, 2 months ago) by kamil
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

POSIX harder the pthread_mutex_timedlock(3) prototype

Add missing __restrict keyword to the first pointer parameter.

It was already used for the second argument, should not be a functional
change and generated code should be the same.

This new form is now aligned with POSIX.

Revision 1.37 / (download) - annotate - [select for diffs], Sun Jul 3 14:24:58 2016 UTC (2 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.36: +41 -5 lines
Diff to previous 1.36 (colored)

GSoC 2016 Charles Cui: Implement thread priority protection based on work
by Andy Doran. Also document the get/set pshared thread calls as not
implemented, and add a skeleton implementation that is disabled.
XXX: document _sched_protect(2).

Revision 1.36 / (download) - annotate - [select for diffs], Sat Apr 23 23:12:19 2016 UTC (2 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.35: +3 -1 lines
Diff to previous 1.35 (colored)

Add pthread_getcpuclockid(3)

Revision 1.34.6.1 / (download) - annotate - [select for diffs], Wed Jan 16 05:32:26 2013 UTC (6 years ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.34: +4 -1 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

sync with (a bit old) head

Revision 1.34.8.1 / (download) - annotate - [select for diffs], Wed Nov 28 23:47:38 2012 UTC (6 years, 1 month ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1
Changes since 1.34: +4 -1 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

Pull up following revision(s) (requested by christos in ticket #722):
	lib/libpthread/pthread_cond.c: revision 1.58
	lib/libpthread/pthread_condattr.3: revision 1.8
	lib/libpthread/pthread.h: revision 1.35
add pthread_condattr_setclock(3)

Revision 1.34.12.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:00:44 2012 UTC (6 years, 2 months ago) by tls
Branch: tls-maxphys
Changes since 1.34: +4 -1 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.35 / (download) - annotate - [select for diffs], Sat Nov 3 03:10:50 2012 UTC (6 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, agc-symver-base, agc-symver
Changes since 1.34: +4 -1 lines
Diff to previous 1.34 (colored)

add pthread_condattr_setclock(3)

Revision 1.34 / (download) - annotate - [select for diffs], Fri Aug 6 05:25:02 2010 UTC (8 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, tls-maxphys, netbsd-6
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (colored)

Add pthread_getattr_np()

Revision 1.33 / (download) - annotate - [select for diffs], Sun Jan 11 02:46:48 2009 UTC (10 years ago) by christos
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.32: +7 -1 lines
Diff to previous 1.32 (colored)

merge christos-time_t

Revision 1.32.6.2 / (download) - annotate - [select for diffs], Mon Jan 5 01:28:26 2009 UTC (10 years ago) by christos
Branch: christos-time_t
Changes since 1.32.6.1: +380 -0 lines
Diff to previous 1.32.6.1 (colored) to branchpoint 1.32 (colored) next main 1.33 (colored)

protect functions that use timespec, but don't bother defining compat versions
since we are going to bump. Fixes lint issues in libc.

Revision 1.29.2.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:39:24 2008 UTC (10 years, 4 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.29: +3 -1 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.32.6.1, Fri Jul 18 16:17:11 2008 UTC (10 years, 6 months ago) by christos
Branch: christos-time_t
Changes since 1.32: +0 -374 lines
FILE REMOVED

file pthread.h was added on branch christos-time_t on 2009-01-05 01:28:26 +0000

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jul 18 16:17:11 2008 UTC (10 years, 6 months ago) by pooka
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, christos-time_t-nbase, christos-time_t-base
Branch point for: christos-time_t
Changes since 1.31: +3 -1 lines
Diff to previous 1.31 (colored)

add pthread_cond_has_waiters_np()

Revision 1.31 / (download) - annotate - [select for diffs], Thu Jun 5 23:38:51 2008 UTC (10 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Changes since 1.30: +0 -3 lines
Diff to previous 1.30 (colored)

Back out previous because it breaks the build.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Jun 5 21:40:17 2008 UTC (10 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.29: +4 -1 lines
Diff to previous 1.29 (colored)

glibc compatibile PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP, requested by
rafal@.

Revision 1.28.4.1 / (download) - annotate - [select for diffs], Sun May 18 12:30:39 2008 UTC (10 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.28: +1 -8 lines
Diff to previous 1.28 (colored) next main 1.29 (colored)

sync with head.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:01 2008 UTC (10 years, 8 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base3, yamt-pf42-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.28: +1 -8 lines
Diff to previous 1.28 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.21.12.2 / (download) - annotate - [select for diffs], Sun Mar 23 00:40:28 2008 UTC (10 years, 10 months ago) by matt
Branch: matt-armv6
Changes since 1.21.12.1: +6 -1 lines
Diff to previous 1.21.12.1 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored)

sync with HEAD

Revision 1.28 / (download) - annotate - [select for diffs], Sat Jan 26 17:55:30 2008 UTC (10 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, matt-armv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base
Branch point for: yamt-pf42
Changes since 1.27: +4 -6 lines
Diff to previous 1.27 (colored)

sched_setparam: fix the case when incorrect (according to the class)
in-kernel priority is used.  Reported by <drochner>.

Minor fixes for scheduling calls to conform the POSIX:
- If pid is equal to zero, use the calling process;
- In case of permission problem, return EPERM instead of EACESS;
- sched_setscheduler() should return previously used policy;
- pthread_* calls should return the error code or zero;

Should fix the namespace problems (and builds of some packages):
- Move cpuset_t defintion from pset.h to sched.h;
- Remove the #include of pset.h in pthread.h;

Revision 1.27 / (download) - annotate - [select for diffs], Sat Jan 19 16:05:34 2008 UTC (11 years ago) by christos
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

s/set/test/

Revision 1.26 / (download) - annotate - [select for diffs], Sat Jan 19 16:03:48 2008 UTC (11 years ago) by christos
Branch: MAIN
Changes since 1.25: +4 -1 lines
Diff to previous 1.25 (colored)

only include <sys/pset.h> if _NETBSD_SOURCE

Revision 1.25 / (download) - annotate - [select for diffs], Tue Jan 15 03:37:14 2008 UTC (11 years ago) by rmind
Branch: MAIN
Changes since 1.24: +5 -1 lines
Diff to previous 1.24 (colored)

Implementation of processor-sets, affinity and POSIX real-time extensions.
Add schedctl(8) - a program to control scheduling of processes and threads.

Notes:
- This is supported only by SCHED_M2;
- Migration of LWP mechanism will be revisited;

Proposed on: <tech-kern>. Reviewed by: <ad>.

Revision 1.21.12.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:36:31 2008 UTC (11 years ago) by matt
Branch: matt-armv6
Changes since 1.21: +17 -1 lines
Diff to previous 1.21 (colored)

sync with HEAD

Revision 1.24 / (download) - annotate - [select for diffs], Mon Dec 24 14:46:28 2007 UTC (11 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base
Changes since 1.23: +11 -1 lines
Diff to previous 1.23 (colored)

- Fix pthread_rwlock_trywrlock() which was broken.

- Add new functions: pthread_mutex_held_np, mutex_owner_np, rwlock_held_np,
  rwlock_wrheld_np, rwlock_rdheld_np. These match the kernel's locking
  primitives and can be used when porting kernel code to userspace.

- Always create LWPs detached. Do join/exit sync mostly in userland. When
  looped on a dual core box this seems ~30% quicker than using lwp_wait().
  Reduce number of lock acquire/release ops during thread exit.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Nov 27 20:58:26 2007 UTC (11 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: cube-autoconf-base, cube-autoconf
Changes since 1.22: +5 -1 lines
Diff to previous 1.22 (colored)

Add thr_curcpu(), pthread_curcpu_np().

Revision 1.22 / (download) - annotate - [select for diffs], Wed Nov 14 19:28:24 2007 UTC (11 years, 2 months ago) by drochner
Branch: MAIN
Changes since 1.21: +3 -1 lines
Diff to previous 1.21 (colored)

Add pthread_equal() to libc stubs; this makes a lot of sense for
threadsafe libraries implementing own locking functions.
Ride on yesterday's minor version bumps.

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Tue Mar 22 15:23:08 2005 UTC (13 years, 10 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.20: +51 -35 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Pull up revision 1.21 (requested by kleink in ticket #46):
Add restrict qualifiers to <pthread.h> function arguments.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Mar 21 17:55:07 2005 UTC (13 years, 10 months ago) by kleink
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, nick-csl-alignment-base5, nick-csl-alignment-base4, nick-csl-alignment-base3, nick-csl-alignment-base2, nick-csl-alignment-base, nick-csl-alignment, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, hpcarm-cleanup, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: matt-armv6
Changes since 1.20: +51 -35 lines
Diff to previous 1.20 (colored)

Add restrict qualifiers to <pthread.h> function arguments.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Dec 29 00:59:57 2004 UTC (14 years ago) by nathanw
Branch: MAIN
CVS Tags: netbsd-3-base
Branch point for: netbsd-3
Changes since 1.19: +3 -1 lines
Diff to previous 1.19 (colored)

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.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Dec 15 16:29:53 2004 UTC (14 years, 1 month ago) by wiz
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Fix typo in comment.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Dec 13 03:10:52 2004 UTC (14 years, 1 month ago) by nathanw
Branch: MAIN
Changes since 1.17: +12 -4 lines
Diff to previous 1.17 (colored)

Add #defines to make use of libc stubs for pthread_cond_wait() and
pthread_cond_timedwait().

XXX as noted in the comments, in the situations where these are
useful, they should never be called in a single-threaded
process. Perhaps they should die rather than return 0.

Addresses xsrc/28630.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Dec 10 16:40:40 2004 UTC (14 years, 1 month ago) by nathanw
Branch: MAIN
Changes since 1.16: +110 -1 lines
Diff to previous 1.16 (colored)

Use CPP macros to cause many libpthread functions used by applications
to be transformed into the do-nothing-when-libpthread-isn't-linked libc
stub names. This will permit library code that uses <pthread.h> and pthread
functions "defensively" to not need to link against libpthread and not need
to be patched to the threadlib.h API.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Dec 7 20:29:07 2003 UTC (15 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.15: +4 -1 lines
Diff to previous 1.15 (colored)

Add pthread_{g,s}etschedparam, that do nothing.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Nov 9 18:56:48 2003 UTC (15 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.14: +5 -1 lines
Diff to previous 1.14 (colored)

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.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jul 18 22:01:47 2003 UTC (15 years, 6 months ago) by nathanw
Branch: MAIN
Changes since 1.13: +17 -6 lines
Diff to previous 1.13 (colored)

Add prototypes and necessary symbols for a bunch of pthread_attr_*() functions,
including (interface borrowed from FreeBSD) pthread_attr_get_np().

Remove a few limit-indicating symbols that don't actually need to be defined
(and if they did need to be defined, it would be in limits.h, not here).

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jul 18 15:58:43 2003 UTC (15 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

#include <pthread_types.h>  instead of "pthread_types.h"

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jul 17 20:59:35 2003 UTC (15 years, 6 months ago) by nathanw
Branch: MAIN
Changes since 1.11: +7 -1 lines
Diff to previous 1.11 (colored)

Define PTHREAD_* structure initializers from _PTHREAD_* macros from
pthread_types.h.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jul 16 21:26:33 2003 UTC (15 years, 6 months ago) by nathanw
Branch: MAIN
Changes since 1.10: +1 -3 lines
Diff to previous 1.10 (colored)

pthread_kill() prototype moved to <signal.h>.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jun 2 16:59:27 2003 UTC (15 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.9: +4 -1 lines
Diff to previous 1.9 (colored)

Add pthread_attr_getstack{,size,addr} needed by jdk

Revision 1.9 / (download) - annotate - [select for diffs], Wed Feb 26 22:02:48 2003 UTC (15 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.8: +12 -1 lines
Diff to previous 1.8 (colored)

Add support for naming a thread, using an API compatible with Tru64 Unix:
* pthread_attr_getname_np()
* pthread_attr_setname_np()
* pthread_getname_np()
* pthread_setname_np()

In addition to being query'able by the application (for log messages, etc.),
it is intended that these names can show up in the debugger.

Reviewed by nathanw.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Feb 13 02:50:48 2003 UTC (15 years, 11 months ago) by nathanw
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

Implement pthread_atfork() (in libc, because the required threadlib
stub behavior is exactly the same as the usual behavior).

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jan 19 20:58:00 2003 UTC (16 years ago) by thorpej
Branch: MAIN
Changes since 1.6: +1 -7 lines
Diff to previous 1.6 (colored)

Remove the dummy stack attr routines -- best to catch broken applications
and fix them to use the proper feature test instead (as has already been
done with the openldap package).

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jan 19 19:41:44 2003 UTC (16 years ago) by skrll
Branch: MAIN
Changes since 1.5: +1 -3 lines
Diff to previous 1.5 (colored)

Move _POSIX_THREADS to the right place and define a few other symbolic
constants for the features we gained with the merge of the nathanw_sa
branch.

Ok'd by thorpej.

Closes my PR 19930.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Jan 19 19:21:49 2003 UTC (16 years ago) by wiz
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Remove another variable name.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jan 19 16:03:50 2003 UTC (16 years ago) by christos
Branch: MAIN
Changes since 1.3: +82 -78 lines
Diff to previous 1.3 (colored)

- constify the get functions
- remove argument variable names since they pollute the namespace
- add mock implementation of the missing stack functions
XXX: we need to do this right [i.e. actually get and set sizes and addresses]
but the current stack setup makes this a bit complicated.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jan 19 11:17:02 2003 UTC (16 years ago) by jdolecek
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

'destructor' is a bit too generic; use 'destruct' instead for
  pthread_key_create() prototype
this fixes compilation of Python 2.2 with thread support
XXX perhaps should drop all variable names from prototypes?

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jan 18 10:34:15 2003 UTC (16 years ago) by thorpej
Branch: MAIN
Changes since 1.1: +190 -0 lines
Diff to previous 1.1 (colored)

Merge the nathanw_sa branch.

Revision 1.1.2.21 / (download) - annotate - [select for diffs], Thu Jan 16 03:35:44 2003 UTC (16 years ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.1.2.20: +2 -5 lines
Diff to previous 1.1.2.20 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

* Move the pthread_sigmask() prototype to <signal.h>.
* Don't include <signal.h> in <pthread.h>.
* Add code to the signal trampoline to convert from the ucontext
  to a sigcontext, and back again (XXX though, only callee-save
  regs for _UC_USER contexts).

This is necessary in order to support e.g. GCC's libjava, which depends
on the traditional Unix semantics of changes made to the sigcontext
being visible when the handler returns.

Revision 1.1.2.20 / (download) - annotate - [select for diffs], Mon Jan 13 22:50:09 2003 UTC (16 years ago) by thorpej
Branch: nathanw_sa
Changes since 1.1.2.19: +11 -1 lines
Diff to previous 1.1.2.19 (colored) to branchpoint 1.1 (colored)

Implement recursive and errorcheck mutexes.

Revision 1.1.2.19 / (download) - annotate - [select for diffs], Wed Jan 8 19:34:22 2003 UTC (16 years ago) by thorpej
Branch: nathanw_sa
Changes since 1.1.2.18: +1 -35 lines
Diff to previous 1.1.2.18 (colored) to branchpoint 1.1 (colored)

Rewrite the way libpthread provides thread primitives to libc, using
strong and weak aliases (the way cancelation points are handled).

Work around lame Unix static library semantics which could cause
the wrong thread primitives or cancelation point functions to be
included in a statically-linked program.

THIS IS AN ABI CHANGE.  People running the nathanw_sa branch should
ensure that their libc and libpthread are in sync after updating.

Revision 1.1.2.18 / (download) - annotate - [select for diffs], Tue Jan 7 17:25:35 2003 UTC (16 years ago) by thorpej
Branch: nathanw_sa
Changes since 1.1.2.17: +10 -1 lines
Diff to previous 1.1.2.17 (colored) to branchpoint 1.1 (colored)

Implement the pthread_barrier API.

Revision 1.1.2.17 / (download) - annotate - [select for diffs], Sun Nov 3 12:26:30 2002 UTC (16 years, 2 months ago) by skrll
Branch: nathanw_sa
Changes since 1.1.2.16: +3 -2 lines
Diff to previous 1.1.2.16 (colored) to branchpoint 1.1 (colored)

Whitespace in comments

Revision 1.1.2.16 / (download) - annotate - [select for diffs], Fri Nov 1 17:06:32 2002 UTC (16 years, 2 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.1.2.15: +4 -1 lines
Diff to previous 1.1.2.15 (colored) to branchpoint 1.1 (colored)

* Default to a 100mS round-robin timer; there are a great many
  applications that assume concurrency even on a uniprocessor.
  (These applications are, of course, broken, but there's not
  much we can do about it.)
* Add pthread_getrrtimer_np() and pthread_setrrtimer_np() functions
  which provide access to the round-robin timer to application programs.
  Setting the rrtimer to 0 will disable timeslicing.

Per discussion with Loren Rittle (on libstdc++@gcc.gnu.org) and
Nathan Williams (privately).  The 100mS default interval is chosen
because timeslicing is largely for user-visible parallelism, and
the 100mS interval results in less overhead while still providing
a reasonable amount of user-visible parallelism.

Revision 1.1.2.15 / (download) - annotate - [select for diffs], Mon Oct 28 00:06:09 2002 UTC (16 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.14: +16 -1 lines
Diff to previous 1.1.2.14 (colored) to branchpoint 1.1 (colored)

Implement POSIX read-write locks.

Revision 1.1.2.14 / (download) - annotate - [select for diffs], Sun Oct 27 23:35:30 2002 UTC (16 years, 2 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.1.2.13: +1 -2 lines
Diff to previous 1.1.2.13 (colored) to branchpoint 1.1 (colored)

Remove duplicate <sched.h>

Revision 1.1.2.13 / (download) - annotate - [select for diffs], Sun Oct 27 23:35:01 2002 UTC (16 years, 2 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.1.2.12: +2 -2 lines
Diff to previous 1.1.2.12 (colored) to branchpoint 1.1 (colored)

Cosmetic changes.

Revision 1.1.2.12 / (download) - annotate - [select for diffs], Mon Jun 24 20:48:01 2002 UTC (16 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.11: +4 -1 lines
Diff to previous 1.1.2.11 (colored) to branchpoint 1.1 (colored)

C++ protection.
From Nick Hudson.

Revision 1.1.2.11 / (download) - annotate - [select for diffs], Thu May 2 16:49:24 2002 UTC (16 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.10: +33 -23 lines
Diff to previous 1.1.2.10 (colored) to branchpoint 1.1 (colored)

Different way of integrating with libc: Create a vector type for pthread
operations; libc will have a pointer to such a vector. When the pthread
library is loaded, set libc's pointer to a vector of real operations.
This removes the reliance on weak symbol magic, which didn't work
for static binaries, and as an aesthetic side effect, we don't have to
export a bunch of ugly _libc_pthread_* wrappers.

Revision 1.1.2.10 / (download) - annotate - [select for diffs], Mon Mar 25 03:46:00 2002 UTC (16 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.9: +25 -2 lines
Diff to previous 1.1.2.9 (colored) to branchpoint 1.1 (colored)

Provide interfaces to libc.

Revision 1.1.2.9 / (download) - annotate - [select for diffs], Fri Mar 1 01:23:14 2002 UTC (16 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.8: +6 -5 lines
Diff to previous 1.1.2.8 (colored) to branchpoint 1.1 (colored)

Declare POSIX spinlock interfaces: pthread_spin_*() and pthread_spinlock_t.
Move the internal spinlock interface declarations back to the internal header.

Revision 1.1.2.8 / (download) - annotate - [select for diffs], Mon Jan 28 19:05:49 2002 UTC (16 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.7: +3 -3 lines
Diff to previous 1.1.2.7 (colored) to branchpoint 1.1 (colored)

Cancellation support.
This includes implementing pthread_cancel() and pthread_testcancel(),
making pthread_join() and pthread_cond_wait() cancellation points,
introducing new states to distinguish waiting on a sleep queue
from waiting in the kernel, and introducing a locking protocol around
changing a thread's run state.

Revision 1.1.2.7 / (download) - annotate - [select for diffs], Sun Dec 30 02:14:41 2001 UTC (17 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.6: +42 -6 lines
Diff to previous 1.1.2.6 (colored) to branchpoint 1.1 (colored)

Declare cancellation routines and define cancellation constants.
Define pthread_cleanup_push() and pthread_cleanup_pop().
Rename pt_spin_t to pthread_spin_t.
Add pthread__errno() interface, for use by libc.

Revision 1.1.2.6 / (download) - annotate - [select for diffs], Wed Aug 8 16:32:17 2001 UTC (17 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.5: +14 -3 lines
Diff to previous 1.1.2.5 (colored) to branchpoint 1.1 (colored)

Add the __noreturn__ attribute to pthread_exit().

Add pthread_once and thread-specific data functions.

Expose pthread spinlock functions.

Revision 1.1.2.5 / (download) - annotate - [select for diffs], Mon Aug 6 20:51:41 2001 UTC (17 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.4: +2 -2 lines
Diff to previous 1.1.2.4 (colored) to branchpoint 1.1 (colored)

broadacst->broadcast
(Regression tests can also catch spelling errors!)

Revision 1.1.2.4 / (download) - annotate - [select for diffs], Wed Jul 25 23:54:10 2001 UTC (17 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.3: +3 -5 lines
Diff to previous 1.1.2.3 (colored) to branchpoint 1.1 (colored)

Remove obsolete PTHREAD_COND_INITIALIZER definition.
Add pthread_mutexattr_{init,destroy}().
Remove optional pthread_condattr functions.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Fri Jul 13 02:42:38 2001 UTC (17 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.2: +36 -1 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored)

Note copyright.
Standardize RCS IDs.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Fri Jul 13 02:06:29 2001 UTC (17 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.1: +6 -16 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

Move some of the more internal types to another file, to improve
readability.

C sucks, or I'd take them out of the application visibility completely.

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 23:51:55 2001 UTC (17 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1: +83 -0 lines
Diff to previous 1.1 (colored)

The beginnings of a scheduler activations-based pthread library.

Revision 1.1, Mon Mar 5 23:51:54 2001 UTC (17 years, 10 months ago) by nathanw
Branch: MAIN
CVS Tags: nathanw_sa_before_merge
Branch point for: nathanw_sa
FILE REMOVED

file pthread.h was initially added on branch nathanw_sa.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>