POV-Ray : Newsgroups : povray.off-topic : Locking references : Re: Locking references Server Time
8 Oct 2024 13:41:08 EDT (-0400)
  Re: Locking references  
From: Stefan Viljoen
Date: 9 Nov 2009 09:19:30
Message: <4af824f1@news.povray.org>
Invisible wrote:

> My point is, you can't just go "I've got lock 7 and lock 13, and now I
> need lock 2, so I'll just release lock 7 and lock 13, then take lock 2
> and take back lock 7 and lock 13". In between releasing the locks and
> taking them back, something could change. You need a better plan than
> that.

Isn't this what a mutex (like it is implemented in the Linux kernel) is for? 

Wik it a bit, I think it might be a partial answer to your original
question... :)
-- 
Stefan Viljoen


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.