Re: Question about threading.Lock().aquire(waitflag)
[ameyer2@xxxxxxxxx]
> is treated as a boolean or as a number.
>
> Running on Windows, I get two different behaviors from
> the following calls to acquire:
>
> aLock = threading.Lock()
> ...
>
> # Thread 0
> # This one often succeeds
> aLock.acquire(1)
> ...
>
> # Thread 1
> # When this one would fail in a different thread
> aLock.acquire(2)
>
> but the behaviors aren't what I would expect if waitflag
> were a timeout value.
It's a Windows bug, fixed a while ago but not yet in a released
Python; here's the bug report:
http://www.python.org/sf/1234979
2 _should_ have exactly the same effect as 1, but didn't on Windows.
> If the argument to acquire is a true/false flag, the
> behaviors for values of 1 and 2 ought to be the same.
Right, that's the intent.
> ...
.
Relevant Pages
- Re: Stockholm Syndrome and Windows,er, the Windiots here.
... "Stockholm Syndrome has certain symptoms or behaviors according to Dr. Carver. ... Negative feelings by the victim toward family, friends, or authorities trying to rescue/support them or win their release ... Even though completely locked into a failing computer system, he compliments Microsoft when speaking of Windows and Microsoft applications. ... I was trying to explain the benefits of Mac OS X vs. Windows when it comes to usability, stability, and virus/worm security only to have him make fun of Apple and the Mac based upon myths and falsehoods. ... (comp.sys.mac.advocacy) - Re: Where do I submit Windows XP bugs?
... Then you're stuck moving to Windows Vista and reporting bugs against that version, not against the older Windows XP. ... Behaviors won't get changed unless they can be regressed to Windows XP from those implemented for Windows Vista. ... About the only "reports" that might get worked on is if you submit critical security issues but then you'd need to have the expertise of someone like Secunia and the level of expertise typical of those users that report there to notify Microsoft of security problems ... (microsoft.public.windowsxp.newusers) - Re: Stockholm Syndrome and Windows,er, the Windiots here.
... >"Stockholm Syndrome has certain symptoms or behaviors according to Dr. ... Positive feelings by the victim toward the abuser/controller ... >compliments Microsoft when speaking of Windows and Microsoft ... (comp.sys.mac.advocacy) - Re: Stockholm Syndrome and Windows,er, the Windiots here.
... >>"Stockholm Syndrome has certain symptoms or behaviors according to Dr. ... Positive feelings by the victim toward the abuser/controller ... >>compliments Microsoft when speaking of Windows and Microsoft ... (comp.sys.mac.advocacy) - Re: RosAsm install does not work.
... That might be a Windows bug. ... but it happened on multiple computers in different branches. ... The system tends to choke when 30 Explorer windows open up and I'll ... could find no superficial bugs in either the IDE or the installation ... (alt.lang.asm) |
|