[Aptitude-svn-commit] r4035 - in branches/aptitude-0.3/aptitude: .
src/generic
Daniel Burrows
dburrows at costa.debian.org
Fri Sep 2 02:23:17 UTC 2005
Author: dburrows
Date: Fri Sep 2 02:23:15 2005
New Revision: 4035
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/generic/threads.h
Log:
Bind pthread_cancel.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Fri Sep 2 02:23:15 2005
@@ -2,6 +2,10 @@
* src/generic/threads.h:
+ Bind pthread_cancel.
+
+ * src/generic/threads.h:
+
Add a convenience box proxy that stores a pointer and deletes it
when destroyed (if it's full).
Modified: branches/aptitude-0.3/aptitude/src/generic/threads.h
==============================================================================
--- branches/aptitude-0.3/aptitude/src/generic/threads.h (original)
+++ branches/aptitude-0.3/aptitude/src/generic/threads.h Fri Sep 2 02:23:15 2005
@@ -202,6 +202,12 @@
else
joined = true;
}
+
+ /** Cancel this thread. */
+ void cancel()
+ {
+ pthread_cancel(tid);
+ }
};
class condition;
More information about the Aptitude-svn-commit
mailing list