OpenBSD CVS

CVS log for src/lib/librthread/Attic/rthread_reaper.c


[BACK] Up to [local] / src / lib / librthread

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.4, Fri Nov 27 19:42:24 2009 UTC (14 years, 6 months ago) by guenther
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED

Change threxit() to take a pointer to a pid_t to zero out from the
kernel so that librthread can detect when a thread is completely
done with its stack without need a kqueue.  The dying thread moves
itself to a GC list, other threads scan the GC list on pthread_create()
and pthread_join() and free the stack and handle once the thread's
thread id is zeroed.

"get it in" deraadt@, tedu@, cheers by others

Revision 1.3 / (download) - annotate - [select for diffs], Tue Apr 10 17:39:21 2007 UTC (17 years, 2 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.2: +7 -5 lines
Diff to previous 1.2 (colored)

when kevent fails, the errno is a lot more interesting to print than -1

Revision 1.2 / (download) - annotate - [select for diffs], Tue Apr 10 17:25:08 2007 UTC (17 years, 2 months ago) by tedu
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

new lines in error messages

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jan 4 19:48:52 2006 UTC (18 years, 5 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9

Cleanup struct pthread and stack after thread exits. This version does
not use a separate reaper thread. ok tedu@ marc@

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.