[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

[PATCH] Re: threads Changes



Attached is a better patch.  Thanks.

On Tue, Nov 4, 2008 at 3:55 PM, Nicholas Clark <nick@ccl4.org> wrote:
> On Tue, Nov 04, 2008 at 03:47:02PM -0500, Jerry D. Hedden wrote:
>> Nicholas Clark wrote:
>> > Now, you all thought it was over, but I can see a task that can be done
>> > independently of me, and would help a lot. Specifically, 5.8.8 shipped
>> > with threads 1.07. 5.8.9 will ship with threads 1.71. A lot happened -
>> > Jerry (and contributors) were very busy:
>>
>> Will something like this do:
>>
>> =item *
>>
>> C<threads> upgraded to 1.71
>>
>> =over
>>
>> =item *
>>
>> New thread state information methods: C<is_running>, C<is_detached>
>> and C<is_joinable>.  C<list> method enhanced to return running or joinable
>> threads.
>>
>> =item *
>>
>> New thread signal method: C<kill>
>>
>> =item *
>>
>> Added capability to specify thread stack size
>>
>> =item *
>>
>> Added capability to control thread exiting behavior.  Added a new C<exit>
>> method.
>>
>> =back
>
> Yes, that's beautiful, if you think that's a fair summary of the most
> important changes between 1.07 and 1.71
>
> Nicholas Clark
>
--- perl-5.8.x/pod/perl589delta.pod
+++ perl-5.8.x/pod/perl589delta.pod
@@ -807,6 +807,23 @@
 
 C<Thread::Queue> upgraded to version 2.06
 
+=back
+
+=item *
+
+Added capability to add complex structures (e.g., hash of hashes) to queues.
+
+=item *
+
+Added capability to dequeue multiple items at once
+
+=item *
+
+Added new methods to inspect and manipulate queues:  C<peek>, C<insert> and
+C<extract>
+
+=back
+
 =item *
 
 C<Tie::Memoize> upgraded to version 1.1
@@ -833,13 +850,34 @@
 
 =item *
 
-C<threads> upgraded to 1.61
+C<threads> upgraded to 1.71
 
-=for fixme Many improvements. 
+=over
 
 =item *
 
-C<threads::shared> upgraded to version 1.21
+New thread state information methods: C<is_running>, C<is_detached>
+and C<is_joinable>.  C<list> method enhanced to return running or joinable
+threads.
+
+=item *
+
+New thread signal method: C<kill>
+
+=item *
+
+Added capability to specify thread stack size
+
+=item *
+
+Added capability to control thread exiting behavior.  Added a new C<exit>
+method.
+
+=back
+
+=item *
+
+C<threads::shared> upgraded to version 1.26
 
 =over
 
@@ -857,6 +895,10 @@
 New function C<shared_clone> creates a copy of an object leaving
 shared elements as-is and deep-cloning non-shared elements.
 
+=item *
+
+Added new C<is_shared> method.
+
 =back
 
 =item *

Follow-Ups from:
Nicholas Clark <nick@ccl4.org>
References to:
Nicholas Clark <nick@ccl4.org>
"Jerry D. Hedden" <jdhedden@cpan.org>
Nicholas Clark <nick@ccl4.org>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]