On Sat, Aug 2, 2008 at 2:36 PM, James <[EMAIL PROTECTED]> wrote:
> All,
>
> I'm trying to write a class that will acquire a lock before entering a
> critical section, and then release it. Does this look like the right
> way to go about accomplishing my goal?
>
> try:
> grabLock = self.lock.acquire(
All,
I'm trying to write a class that will acquire a lock before entering a
critical section, and then release it. Does this look like the right
way to go about accomplishing my goal?
try:
grabLock = self.lock.acquire( 0 )
if grabLock:
print 'acquired lock successfully'