The NetBSD Project

CVS log for src/lib/libpthread/pthread_misc.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.19 / (download) - annotate - [select for diffs], Sun Apr 10 10:38:33 2022 UTC (9 months, 4 weeks ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

pthread: Nix trailing whitespace.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Feb 12 14:59:32 2022 UTC (11 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.17: +5 -2 lines
Diff to previous 1.17 (colored)

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.)

Revision 1.15.30.1 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:15 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.15: +21 -14 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

Merge changes from current as of 20200406

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jan 29 16:34:09 2020 UTC (3 years ago) by kamil
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.16: +20 -2 lines
Diff to previous 1.16 (colored)

Check thread->pt_magic with PT_MAGIC promptly

Revision 1.15.32.1 / (download) - annotate - [select for diffs], Sun Jan 26 10:55:16 2020 UTC (3 years ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2
Changes since 1.15: +3 -14 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

Pull up following revision(s) (requested by ad in ticket #647):

	lib/libpthread/pthread_rwlock.c: revision 1.37 (patch)
	lib/libpthread/pthread_misc.c: revision 1.16
	lib/libpthread/pthread.c: revision 1.154
	lib/libpthread/pthread_int.h: revision 1.98
	lib/libpthread/pthread_cond.c: revision 1.66
	lib/libpthread/pthread_mutex.c: revision 1.66

Rip out some very ambitious optimisations around pthread_mutex that are
don't buy much.  This stuff is hard enough to get right in the kernel let
alone userspace, and I don't trust that it's right.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jan 13 18:22:56 2020 UTC (3 years ago) by ad
Branch: MAIN
Changes since 1.15: +3 -14 lines
Diff to previous 1.15 (colored)

Rip out some very ambitious optimisations around pthread_mutex that are
don't buy much.  This stuff is hard enough to get right in the kernel let
alone userspace, and I don't trust that it's right.

Revision 1.14.6.1 / (download) - annotate - [select for diffs], Thu May 22 11:36:59 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.14: +6 -3 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.14.12.1 / (download) - annotate - [select for diffs], Sun Jun 23 06:21:08 2013 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.14: +6 -3 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

resync from head

Revision 1.14.8.1 / (download) - annotate - [select for diffs], Mon Apr 29 01:50:18 2013 UTC (9 years, 9 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, 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.14: +6 -3 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Pull up following revision(s) (requested by manu in ticket #869):
	lib/libpthread/pthread_rwlock.c: revision 1.33
	lib/libc/include/reentrant.h: revision 1.16
	lib/libpthread/pthread_cond.c: revision 1.59
	lib/libpthread/pthread_misc.c: revision 1.15
	lib/libc/thread-stub/thread-stub.c: revision 1.23
	lib/libpthread/pthread_cancelstub.c: revision 1.38
	lib/libpthread/pthread_specific.c: revision 1.26
	lib/libpthread/pthread_mutex.c: revision 1.56
	lib/libpthread/pthread_tsd.c: revision 1.11
	lib/libpthread/Makefile: revision 1.80
	lib/libpthread/pthread.c: revision 1.143
	lib/libpthread/pthread_int.h: revision 1.89
- 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.15 / (download) - annotate - [select for diffs], Thu Mar 21 16:49:12 2013 UTC (9 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, 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, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, 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, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-0-RC1, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, 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, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver
Branch point for: phil-wifi, netbsd-9
Changes since 1.14: +6 -3 lines
Diff to previous 1.14 (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.10.8.1 / (download) - annotate - [select for diffs], Wed Apr 21 05:28:11 2010 UTC (12 years, 9 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.10: +2 -17 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

sync to netbsd-5

Revision 1.10.4.1 / (download) - annotate - [select for diffs], Sat Sep 5 12:51:09 2009 UTC (13 years, 5 months ago) by bouyer
Branch: netbsd-5
CVS Tags: 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, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.10: +2 -17 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Pull up following revision(s) (requested by enami in ticket #921):
	lib/libpthread/pthread_misc.c: revision 1.14 via patch
	lib/libpthread/pthread_cancelstub.c: revision 1.27 via patch
Make nanosleep cancelable again.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Aug 12 23:51:23 2009 UTC (13 years, 5 months ago) by enami
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, 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-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-premerge-20091211, 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.13: +2 -17 lines
Diff to previous 1.13 (colored)

Make nanosleep cancelable again.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jan 11 02:46:48 2009 UTC (14 years ago) by christos
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.12: +6 -6 lines
Diff to previous 1.12 (colored)

merge christos-time_t

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Mon Dec 29 15:10:58 2008 UTC (14 years, 1 month ago) by christos
Branch: christos-time_t
Changes since 1.12.2.1: +182 -0 lines
Diff to previous 1.12.2.1 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

commit changes to the right branch.

Revision 1.12.2.1, Mon Dec 29 15:08:04 2008 UTC (14 years, 1 month ago) by christos
Branch: christos-time_t
Changes since 1.12: +0 -182 lines
FILE REMOVED

file pthread_misc.c was added on branch christos-time_t on 2008-12-29 15:10:58 +0000

Revision 1.12 / (download) - annotate - [select for diffs], Mon Dec 29 15:08:04 2008 UTC (14 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: christos-time_t-nbase, christos-time_t-base
Branch point for: christos-time_t
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

revert previous. It was meant for the branch

Revision 1.11 / (download) - annotate - [select for diffs], Sun Dec 28 21:33:35 2008 UTC (14 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.10: +6 -6 lines
Diff to previous 1.10 (colored)

adjust for time_t 64

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

Sync with wrstuden-revivesa-base-2.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Jun 28 16:50:43 2008 UTC (14 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, 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, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Branch point for: netbsd-5, matt-nb5-mips64
Changes since 1.9: +4 -2 lines
Diff to previous 1.9 (colored)

Shut lint up.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jun 24 13:45:07 2008 UTC (14 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.8: +8 -5 lines
Diff to previous 1.8 (colored)

pthread_kill, pthread_sigmask: return errno, not the return from the system
call. Found by VSTHlite.

Revision 1.7.4.1 / (download) - annotate - [select for diffs], Sun May 18 12:30:40 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.7: +2 -9 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

sync with head.

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

Remove clause 3 and 4 from TNF licenses

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Sun Mar 23 00:40:28 2008 UTC (14 years, 10 months ago) by matt
Branch: matt-armv6
Changes since 1.2.2.1: +68 -17 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

sync with HEAD

Revision 1.7 / (download) - annotate - [select for diffs], Sun Feb 10 18:50:54 2008 UTC (14 years, 11 months ago) by ad
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.6: +4 -5 lines
Diff to previous 1.6 (colored)

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

Revision 1.6 / (download) - annotate - [select for diffs], Sat Feb 9 17:07:54 2008 UTC (15 years ago) by yamt
Branch: MAIN
Changes since 1.5: +5 -8 lines
Diff to previous 1.5 (colored)

update for _sched_{get,set}param changes.  from rmind@.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jan 26 17:55:30 2008 UTC (15 years ago) by rmind
Branch: MAIN
Changes since 1.4: +23 -11 lines
Diff to previous 1.4 (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.4 / (download) - annotate - [select for diffs], Tue Jan 15 03:37:14 2008 UTC (15 years ago) by rmind
Branch: MAIN
Changes since 1.3: +59 -16 lines
Diff to previous 1.3 (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.2.2.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:36:37 2008 UTC (15 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.2: +25 -3 lines
Diff to previous 1.2 (colored)

sync with HEAD

Revision 1.3 / (download) - annotate - [select for diffs], Tue Nov 13 17:20:09 2007 UTC (15 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base, cube-autoconf-base, cube-autoconf
Changes since 1.2: +25 -3 lines
Diff to previous 1.2 (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.1.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:14:15 2007 UTC (15 years, 5 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.1: +3 -6 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

Sync with HEAD.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Aug 16 13:54:17 2007 UTC (15 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base5, nick-csl-alignment-base4, nick-csl-alignment-base3, matt-armv6-prevmlocking
Branch point for: matt-armv6
Changes since 1.1: +3 -6 lines
Diff to previous 1.1 (colored)

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

Revision 1.1 / (download) - annotate - [select for diffs], Fri Mar 2 18:53:52 2007 UTC (15 years, 11 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

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

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>