The NetBSD Project

CVS log for src/lib/libpthread/Makefile

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.80 / (download) - annotate - [select for diffs], Thu Mar 21 16:49:11 2013 UTC (2 months ago) by christos
Branch: MAIN
CVS Tags: agc-symver-base, agc-symver, HEAD
Changes since 1.79: +4 -5 lines
Diff to previous 1.79 (colored)

- Allow libpthread to be dlopened again, by providing libc stubs to libpthread.
- Fail if the dlopened libpthread does pthread_create(). From manu@
- Discussed at length in the mailing lists; approved by core@
- This was chosen as the least intrusive patch that will provide
  the necessary functionality.
XXX: pullup to 6

Revision 1.79 / (download) - annotate - [select for diffs], Mon Feb 25 17:04:46 2013 UTC (2 months, 3 weeks ago) by apb
Branch: MAIN
Changes since 1.78: +6 -1 lines
Diff to previous 1.78 (colored)

Explain what PTHREAD__COMPAT is for.  This comment in
src/libpthread/Makefile is adated from a comment in
src/doc/CHANGES.prev.

Revision 1.78 / (download) - annotate - [select for diffs], Thu Jan 31 20:57:58 2013 UTC (3 months, 2 weeks ago) by riastradh
Branch: MAIN
CVS Tags: tls-maxphys-nbase, tls-maxphys-base
Changes since 1.77: +2 -1 lines
Diff to previous 1.77 (colored)

Add pthread_condattr_setclock(3) man page link.

Revision 1.77 / (download) - annotate - [select for diffs], Sat Aug 4 15:13:09 2012 UTC (9 months, 2 weeks ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.76: +2 -2 lines
Diff to previous 1.76 (colored)

-Wfoo goes into CWARNFLAGS

Revision 1.76 / (download) - annotate - [select for diffs], Wed Apr 4 10:59:46 2012 UTC (13 months, 2 weeks ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4
Changes since 1.75: +6 -4 lines
Diff to previous 1.75 (colored)

Disable new -Wstring-plus-int warning where needed for now.
Adjust various places that add GCC-only options to check for the active
compiler first.

Revision 1.75 / (download) - annotate - [select for diffs], Wed Mar 21 05:37:43 2012 UTC (14 months ago) by matt
Branch: MAIN
Changes since 1.74: +2 -2 lines
Diff to previous 1.74 (colored)

These directories default to WARNS?=5

Revision 1.74 / (download) - annotate - [select for diffs], Mon Mar 12 21:35:10 2012 UTC (14 months, 1 week ago) by joerg
Branch: MAIN
Changes since 1.73: +2 -1 lines
Diff to previous 1.73 (colored)

Move pthread_once implementation into a separate file, it doesn't depend
on the mutex implementation in any way.

Revision 1.73 / (download) - annotate - [select for diffs], Thu Nov 10 14:01:11 2011 UTC (18 months, 1 week ago) by yamt
Branch: MAIN
CVS Tags: netbsd-6-base, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: netbsd-6
Changes since 1.72: +2 -1 lines
Diff to previous 1.72 (colored)

document pthread_curcpu_np

Revision 1.72 / (download) - annotate - [select for diffs], Tue Aug 16 10:36:30 2011 UTC (21 months, 1 week ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.71: +3 -2 lines
Diff to previous 1.71 (colored)

document non-literal format strings

Revision 1.71 / (download) - annotate - [select for diffs], Fri Dec 24 12:41:42 2010 UTC (2 years, 4 months ago) by skrll
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.70: +3 -1 lines
Diff to previous 1.70 (colored)

Add support for DF_1_BIND_NOW, DF_1_NODELETE and DF_1_NOOPEN marked
objects, and the RTLD_NODELETE and RTLD_NOLOAD flags to dlopen(3).

Mark libpthread as DF_1_NOOPEN and use it to test the functionality.

Somewhat taken from FreeBSD.

Fixes PR 42029.

OK from christos and joerg.

Revision 1.70 / (download) - annotate - [select for diffs], Fri Aug 6 05:35:42 2010 UTC (2 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.69: +2 -1 lines
Diff to previous 1.69 (colored)

document pthread_getattr_np

Revision 1.69 / (download) - annotate - [select for diffs], Fri Jul 9 08:22:04 2010 UTC (2 years, 10 months ago) by jruoho
Branch: MAIN
Changes since 1.68: +5 -3 lines
Diff to previous 1.68 (colored)

Rationalize by moving

	pthread_key_delete(3) to pthread_key_create(3); and
	pthread_setspecific(3) to pthread_getspecific(3)

Revision 1.68 / (download) - annotate - [select for diffs], Fri Jul 9 07:31:01 2010 UTC (2 years, 10 months ago) by jruoho
Branch: MAIN
Changes since 1.67: +4 -3 lines
Diff to previous 1.67 (colored)

Rationalize by moving

	pthread_attr_setname_np(3) to pthread_attr_getname_np(3); and
	pthread_setname_np(3) to pthread_getname_np(3).

Revision 1.67 / (download) - annotate - [select for diffs], Thu Jul 8 22:19:26 2010 UTC (2 years, 10 months ago) by jruoho
Branch: MAIN
Changes since 1.66: +7 -4 lines
Diff to previous 1.66 (colored)

Group also pthread_attr_getschedparam(3) and pthread_attr_getschedpolicy(3),
as these two pages fit well together.

Revision 1.66 / (download) - annotate - [select for diffs], Thu Jul 8 19:20:16 2010 UTC (2 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.65: +47 -22 lines
Diff to previous 1.65 (colored)

Merge/group man pages:
- pthread_barrier_{init,destroy,wait} into pthread_barrier(3).
- pthread_cond_* into pthread_cond(3).
- pthread_mutex_* into pthread_mutex(3).
- pthread_rwlock_* into pthread_rwlock(3).
- pthread_spin_* into pthread_spin(3).
Cross-link amongst groups.
OK jruoho@

Revision 1.65 / (download) - annotate - [select for diffs], Wed Jul 7 16:22:30 2010 UTC (2 years, 10 months ago) by jruoho
Branch: MAIN
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored)

Finally, split pthread_attr_getschedpolicy() and pthread_attr_setschedpolicy()
to their own page.

Revision 1.64 / (download) - annotate - [select for diffs], Wed Jul 7 16:04:19 2010 UTC (2 years, 10 months ago) by jruoho
Branch: MAIN
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored)

Split pthread_attr_getschedparam() and pthread_attr_setschedparam() to a
separate page.

Revision 1.63 / (download) - annotate - [select for diffs], Wed Jul 7 15:30:32 2010 UTC (2 years, 10 months ago) by jruoho
Branch: MAIN
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored)

Split pthread_attr_getinheritsched() and pthread_attr_setinheritsched() to a
separate page, and actually document these.

Revision 1.62 / (download) - annotate - [select for diffs], Wed Jul 7 13:04:20 2010 UTC (2 years, 10 months ago) by jruoho
Branch: MAIN
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored)

Move pthread_attr_getguardsize() and pthread_attr_setguardsize() to a
separate page, and actually document these.

Revision 1.61 / (download) - annotate - [select for diffs], Wed Jul 7 11:04:54 2010 UTC (2 years, 10 months ago) by jruoho
Branch: MAIN
Changes since 1.60: +7 -5 lines
Diff to previous 1.60 (colored)

Move the thread stack attribute functions to a separate page. In addition,
document pthread_attr_getstack() and pthread_attr_setstack(). Try to also
document these a little better (in particular, note some items in the long
list of caveats and questions related to application-controlled thread stack).

Revision 1.60 / (download) - annotate - [select for diffs], Wed Jul 7 08:57:36 2010 UTC (2 years, 10 months ago) by jruoho
Branch: MAIN
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored)

Split pthread_attr_getdetachstate(3) and pthread_attr_setdetachstate(3) to a
separate page. Once ready, the main page, pthread_attr(3), will contain a
summary of the various thread attribute functions.

Revision 1.59 / (download) - annotate - [select for diffs], Wed Jul 7 08:22:53 2010 UTC (2 years, 10 months ago) by jruoho
Branch: MAIN
Changes since 1.58: +4 -3 lines
Diff to previous 1.58 (colored)

Move pthread_attr_{g,s}etscope() to a separate page and try to document
these better. Should fix PR lib/41831 from Wolfgang Stukenbrock.

XXX: Please proofread.

Revision 1.58 / (download) - annotate - [select for diffs], Tue Jul 6 21:36:34 2010 UTC (2 years, 10 months ago) by jruoho
Branch: MAIN
Changes since 1.57: +2 -1 lines
Diff to previous 1.57 (colored)

Document pthread_attr_get_np(). Fixes PR lib/39289 from ahoka@.

Revision 1.57 / (download) - annotate - [select for diffs], Wed May 19 20:04:43 2010 UTC (3 years ago) by jruoho
Branch: MAIN
Changes since 1.56: +15 -1 lines
Diff to previous 1.56 (colored)

Build links for rest of the pthread_attr(3) functions.
Hopefully I got all of them right in the setlist...

Revision 1.56 / (download) - annotate - [select for diffs], Sat May 16 22:21:18 2009 UTC (4 years ago) by ad
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.55: +3 -21 lines
Diff to previous 1.55 (colored)

Remove unused code that's confusing when using cscope/opengrok.

Revision 1.55 / (download) - annotate - [select for diffs], Sun Oct 26 00:00:27 2008 UTC (4 years, 6 months ago) by mrg
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, 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-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, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, christos-time_t-nbase, christos-time_t-base
Branch point for: christos-time_t
Changes since 1.54: +5 -2 lines
Diff to previous 1.54 (colored)

check for ${PTHREAD_MACHINE_ARCH} before ${MACHINE_ARCH} or ${MACHINE_CPU}

Revision 1.54 / (download) - annotate - [select for diffs], Wed Oct 8 08:27:07 2008 UTC (4 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: matt-mips64-base2
Changes since 1.53: +1 -2 lines
Diff to previous 1.53 (colored)

Adjust the compat stuff slightly so that the changes are mostly self
contained (Makefile, pthread_compat.c).

Revision 1.53 / (download) - annotate - [select for diffs], Mon Sep 29 08:48:15 2008 UTC (4 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.52: +11 -1 lines
Diff to previous 1.52 (colored)

make PTHREAD__COMPAT=1

Builds a libpthread that can be dropped into a NetBSD 2/3/4 chroot.

This makes threading work in the chroot when using a NetBSD 5 kernel, no
other modifications required.

Revision 1.52 / (download) - annotate - [select for diffs], Mon Jun 16 14:25:49 2008 UTC (4 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Changes since 1.51: +4 -2 lines
Diff to previous 1.51 (colored)

- Add affinity(3) manual page, which describes thread affinity,
  pthread_setaffinity_np(3) and pthread_getaffinity_np(3) functions,
  provides simple code example.
- Add cpuset(3) manual page, which describes API of CPU-sets.

Thanks <wiz> for many improvements!

Revision 1.51 / (download) - annotate - [select for diffs], Mon Mar 10 14:47:06 2008 UTC (5 years, 2 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, matt-armv6-nbase, keiichi-mipv6-base, hpcarm-cleanup-nbase
Branch point for: yamt-pf42, wrstuden-revivesa
Changes since 1.50: +2 -3 lines
Diff to previous 1.50 (colored)

Add sched(3) manual page, and appropriate links.
Thanks <wiz> for review and fixes!

Revision 1.50 / (download) - annotate - [select for diffs], Sun Feb 10 18:50:54 2008 UTC (5 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: hpcarm-cleanup-base
Branch point for: keiichi-mipv6
Changes since 1.49: +4 -6 lines
Diff to previous 1.49 (colored)

- Remove libpthread's atomic ops.
- Remove the old spinlock-based mutex and rwlock implementations.
- Use the atomic ops from libc.

Revision 1.49 / (download) - annotate - [select for diffs], Tue Jan 15 03:37:14 2008 UTC (5 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.48: +1 -2 lines
Diff to previous 1.48 (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.48 / (download) - annotate - [select for diffs], Fri Dec 14 21:51:21 2007 UTC (5 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: matt-armv6-base
Changes since 1.47: +9 -3 lines
Diff to previous 1.47 (colored)

document following functions.
	pthread_attr_getname_np
	pthread_attr_setname_np
	pthread_getname_np
	pthread_setname_np

Revision 1.47 / (download) - annotate - [select for diffs], Mon Nov 19 15:14:11 2007 UTC (5 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: cube-autoconf-base, cube-autoconf
Changes since 1.46: +1 -5 lines
Diff to previous 1.46 (colored)

Remove the debuglog stuff. ktrace is more useful now.

Revision 1.46 / (download) - annotate - [select for diffs], Tue Nov 13 17:20:08 2007 UTC (5 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.45: +6 -1 lines
Diff to previous 1.45 (colored)

Mutexes:

- Play scrooge again and chop more cycles off acquire/release.
- Spin while the lock holder is running on another CPU (adaptive mutexes).
- Do non-atomic release.

Threadreg:

- Add the necessary hooks to use a thread register.
- Add the code for i386, using %gs.
- Leave i386 code disabled until xen and COMPAT_NETBSD32 have the changes.

Revision 1.45 / (download) - annotate - [select for diffs], Sat Oct 13 20:36:43 2007 UTC (5 years, 7 months ago) by jnemeth
Branch: MAIN
Changes since 1.44: +3 -1 lines
Diff to previous 1.44 (colored)

SSP doesn't like alloca...

Revision 1.44 / (download) - annotate - [select for diffs], Thu Oct 4 21:08:35 2007 UTC (5 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.43: +2 -1 lines
Diff to previous 1.43 (colored)

Compile pthread_getspecific / pthread_setspecific with -fomit-frame-pointer
-falign-functions=32, since these two really get hammered on. To make them
faster needs a threadreg or TLS, unless there is a way to tell gcc that a
library-local (pthread__threadmask) variable does not need to be PIC.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Sep 7 14:09:27 2007 UTC (5 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base5
Changes since 1.42: +3 -1 lines
Diff to previous 1.42 (colored)

- Don't take the mutex's spinlock (ptr_interlock) in pthread_cond_wait().
  Instead, make the deferred wakeup list a per-thread array and pass down
  the lwpid_t's that way.

- In pthread_cond_wait(), take the mutex before dealing with early wakeup.
  In this way there should never be contention on the CV's spinlock if
  the app follows POSIX rules (there should only be contention on the
  user-provided mutex).

- Add a port of the kernel's rwlocks. The rwlock's spinlock is only taken if
  there is contention. This is enabled where atomic ops are available. Right
  now that is only i386 and amd64 because I don't have other hardware to
  test with. It's trivial to add stubs for other architectures as long as
  they have compare-and-swap. When we have proper atomic ops the old rwlock
  code can be removed.

- Add a new mutex implementation that's similar to the kernel's mutexes, but
  uses compare-and-swap to maintain the waiters list, so no spinlocks are
  involved. Same caveats apply as for the rwlocks.

Revision 1.42 / (download) - annotate - [select for diffs], Thu Aug 16 13:54:16 2007 UTC (5 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base4, nick-csl-alignment-base3
Branch point for: matt-armv6
Changes since 1.41: +9 -1 lines
Diff to previous 1.41 (colored)

Trim fat off libpthread internal spinlock operations. Makes a mesurable
improvement across the board.

Revision 1.41 / (download) - annotate - [select for diffs], Thu Aug 16 01:09:34 2007 UTC (5 years, 9 months ago) by ad
Branch: MAIN
Changes since 1.40: +1 -5 lines
Diff to previous 1.40 (colored)

Remove PT_FIXEDSTACKSIZE_LG.

Revision 1.40 / (download) - annotate - [select for diffs], Fri Mar 2 18:53:51 2007 UTC (6 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base2, nick-csl-alignment-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment
Changes since 1.39: +2 -14 lines
Diff to previous 1.39 (colored)

Remove the PTHREAD_SA option. If M:N threads is reimplemented it's
better off done with a seperate library.

Revision 1.39 / (download) - annotate - [select for diffs], Fri Feb 9 22:08:48 2007 UTC (6 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

Sync with kernel changes introduced by merging the newlock2 branch.

Revision 1.38 / (download) - annotate - [select for diffs], Sat Jan 20 04:56:25 2007 UTC (6 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

set warns to 4

Revision 1.37 / (download) - annotate - [select for diffs], Sun Dec 24 18:39:45 2006 UTC (6 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

Fix bugs with and improve upon previous.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Dec 23 05:14:46 2006 UTC (6 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.35: +10 -2 lines
Diff to previous 1.35 (colored)

Conditionalised support for 1:1 threads. Needs associated kernel changes
and more work to be useful.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Dec 13 22:07:20 2005 UTC (7 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.34: +6 -3 lines
Diff to previous 1.34 (colored)

include libc after our own files to fix ports that have 2 assym.h's. One
in pthread and one in libc.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Sep 13 02:45:38 2005 UTC (7 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.33: +3 -1 lines
Diff to previous 1.33 (colored)

XXX: Work around libpthread's "intimate" connection with libc.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jun 17 18:37:24 2005 UTC (7 years, 11 months ago) by peter
Branch: MAIN
Changes since 1.32: +3 -1 lines
Diff to previous 1.32 (colored)

Create links for pthread_attr_setschedparam.3
and pthread_attr_getschedparam.3 to pthread_attr.3.

From Igor Sobrado in PR/29997.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jun 17 18:23:19 2005 UTC (7 years, 11 months ago) by peter
Branch: MAIN
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

Don't create links to pthread_barierattr_init.3 and
pthread_barierattr_destroy.3 but to pthread_barrierattr_init.3
and pthread_barrierattr_destroy.3 (note the 2 rs in barrier).

Revision 1.31 / (download) - annotate - [select for diffs], Mon May 30 16:02:56 2005 UTC (7 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.30: +3 -4 lines
Diff to previous 1.30 (colored)

Use TOOL_GENASSYM.  Part of PR toolchain/30350

Revision 1.30 / (download) - annotate - [select for diffs], Thu Feb 3 17:30:33 2005 UTC (8 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-3-base
Branch point for: netbsd-3
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

Add charles' mlock fixes, protected with PTHREAD_MLOCK_KLUDGE and enabled
by default, until we come up with a real fix.

Revision 1.29 / (download) - annotate - [select for diffs], Tue Dec 14 01:47:13 2004 UTC (8 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.28: +3 -2 lines
Diff to previous 1.28 (colored)

document sched_yield.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Dec 10 16:40:40 2004 UTC (8 years, 5 months ago) by nathanw
Branch: MAIN
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (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.27 / (download) - annotate - [select for diffs], Wed Jun 2 14:07:07 2004 UTC (8 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

pthread_spin_lock.3 also describes pthread_spin_trylock(),
so link them together

Revision 1.26 / (download) - annotate - [select for diffs], Fri May 21 03:40:51 2004 UTC (9 years ago) by christos
Branch: MAIN
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored)

add pool code for res state.
XXX: could be more efficient.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jan 2 01:37:53 2004 UTC (9 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-2-base, 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
Branch point for: netbsd-2
Changes since 1.24: +6 -2 lines
Diff to previous 1.24 (colored)

Add dependencies to assym.h on:
	pthread.h pthread_int.h pthread_md.h
Should help prevent the problem I raised in [kern/23946], based on
a hint from Christian Limpach.

Add MAKEVERBOSE support.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Nov 27 16:30:54 2003 UTC (9 years, 5 months ago) by cl
Branch: MAIN
Changes since 1.23: +4 -1 lines
Diff to previous 1.23 (colored)

Set default stack size to the current limit on the stack size as set
with the shell's command to change limits.  Make the PTHREAD_STACKSIZE
environment variable override the default stack size.  The old fixed
stack size behaviour can be enable with PT_FIXEDSTACKSIZE_LG when building
libpthread.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Nov 12 02:44:22 2003 UTC (9 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.22: +4 -3 lines
Diff to previous 1.22 (colored)

Document pthread_attr_setcreatesuspend_np, pthread_suspend_np, pthread_resume_np

Revision 1.22 / (download) - annotate - [select for diffs], Sun Oct 26 07:25:34 2003 UTC (9 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Aug 13 18:52:01 2003 UTC (9 years, 9 months ago) by nathanw
Branch: MAIN
Changes since 1.20: +10 -1 lines
Diff to previous 1.20 (colored)

Split out pthread_{set,get}specific() into a separate file and arrange
for that file to not be built with profiling. This makes it reasonable to
use pthread_{set,get}specific() to implement thread-safe profiline call counts.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Aug 1 17:03:59 2003 UTC (9 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)

Rework how dependency generation is performed:

* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
  This is a change of behaviour.  If a Makefile wants the clean semantics
  it must specifically append to CLEANFILES.
  Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
  that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d  depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".

Revision 1.19 / (download) - annotate - [select for diffs], Thu Jul 24 07:50:24 2003 UTC (9 years, 10 months ago) by wiz
Branch: MAIN
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

Add pthread(3), based on one by Hubert Feyrer, improved by yours truly,
reviewed by Nathan J. Williams.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Jul 18 22:33:45 2003 UTC (9 years, 10 months ago) by nathanw
Branch: MAIN
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored)

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.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Jun 3 21:34:00 2003 UTC (9 years, 11 months ago) by nathanw
Branch: MAIN
Changes since 1.16: +47 -1 lines
Diff to previous 1.16 (colored)

Make infrastructure for man pages.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Mar 10 22:16:36 2003 UTC (10 years, 2 months ago) by nathanw
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

Re-enable nanosleep(); kernel bug is squished (kern_time.c:1.67).

Revision 1.15 / (download) - annotate - [select for diffs], Fri Feb 28 18:37:44 2003 UTC (10 years, 2 months ago) by nathanw
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

Disable userlevel nanosleep() until I find the timer/alarm bug that it
is tickling.

Revision 1.14 / (download) - annotate - [select for diffs], Sat Feb 15 22:15:50 2003 UTC (10 years, 3 months ago) by nathanw
Branch: MAIN
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

Implement nanosleep() at userlevel. Threaded applications seem to like
to sleep a lot, and there's no need for each such thread to consume kernel
resources.

(accidentally checked the pthread.c part of this in yesterday; no reason
 not to finish the job)

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jan 24 01:53:27 2003 UTC (10 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.12: +1 -12 lines
Diff to previous 1.12 (colored)

p1003.1b semaphore manual pages have been moved to librt.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jan 21 02:24:41 2003 UTC (10 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.11: +12 -1 lines
Diff to previous 1.11 (colored)

add manual pages.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jan 20 20:10:19 2003 UTC (10 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.10: +3 -2 lines
Diff to previous 1.10 (colored)

add support for p1003.1b semaphores. From FreeBSD

Revision 1.10 / (download) - annotate - [select for diffs], Sun Jan 19 19:55:13 2003 UTC (10 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.9: +7 -5 lines
Diff to previous 1.9 (colored)

Always allow includes to be installed.  This makes it easier for
people to get straggling ports bootstrapped (pthread.h is required
in order to build libc).

Revision 1.9 / (download) - annotate - [select for diffs], Sat Jan 18 10:34:14 2003 UTC (10 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.8: +76 -19 lines
Diff to previous 1.8 (colored)

Merge the nathanw_sa branch.

Revision 1.8, Wed Oct 8 17:14:36 1997 UTC (15 years, 7 months ago) by scottr
Branch: MAIN
CVS Tags: nathanw_sa_before_merge
Branch point for: nathanw_sa
Changes since 1.7: +0 -0 lines
FILE REMOVED

This incarnation of the pthreads library is ancient and not useful, and
should have been mothballed some time ago...

Revision 1.7 / (download) - annotate - [select for diffs], Mon Feb 7 21:59:27 1994 UTC (19 years, 3 months ago) by proven
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1, netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

The latest pthread library.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Nov 22 19:37:48 1993 UTC (19 years, 6 months ago) by proven
Branch: MAIN
Changes since 1.5: +1 -1 lines
Diff to previous 1.5 (colored)

Fix for older shells that can't handle then;

Revision 1.5 / (download) - annotate - [select for diffs], Tue Nov 16 03:21:44 1993 UTC (19 years, 6 months ago) by proven
Branch: MAIN
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored)

Added NOPIC flag.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Nov 15 11:11:00 1993 UTC (19 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.3: +2 -4 lines
Diff to previous 1.3 (colored)

correct my bad advice

Revision 1.3 / (download) - annotate - [select for diffs], Mon Nov 15 10:02:18 1993 UTC (19 years, 6 months ago) by proven
Branch: MAIN
Changes since 1.2: +9 -8 lines
Diff to previous 1.2 (colored)

OK one more try at getting it right ...

Revision 1.2 / (download) - annotate - [select for diffs], Mon Nov 15 06:49:08 1993 UTC (19 years, 6 months ago) by proven
Branch: MAIN
Changes since 1.1: +10 -0 lines
Diff to previous 1.1 (colored)

Makefile needed a preall to make a few links before compiling sources.
CVS doesn't check in symlinks.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Nov 14 22:06:21 1993 UTC (19 years, 6 months ago) by proven
Branch: MAIN

Initial revision

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>