[PATCH] Make Object>>FinalizableObjects thread safe

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Make Object>>FinalizableObjects thread safe

Gwenaël Casaccio
Hi,

Here is the patch.

Gwen


_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk

0002-kernel-Make-Object-FinalizableObjects-thread-safe.patch (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Make Object>>FinalizableObjects thread safe

Paolo Bonzini-2
Il 31/03/2014 09:47, Gwenaël Casaccio ha scritto:

> Hi,
>
> Here is the patch.
>
> Gwen
>
>
>
> _______________________________________________
> help-smalltalk mailing list
> [hidden email]
> https://lists.gnu.org/mailman/listinfo/help-smalltalk
>

Ok.

Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Make Object>>FinalizableObjects thread safe

Holger Freyther
In reply to this post by Gwenaël Casaccio
On Mon, Mar 31, 2014 at 09:47:04AM +0200, Gwenaël Casaccio wrote:

hi,

> + FinalSemaphore isNil ifFalse: [ ^FinalSemaphore ].
> + ^ [
> +            FinalSemaphore isNil ifTrue: [ FinalSemaphore := Semaphore forMutualExclusion ].

out of coriousity. Why do you use isNil ifFalse instead of ifNotNil?
Or ifNil?

holger

_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk