Menu

#3166 Protect against spurious wakeups

obsolete: 8.4.10
closed-fixed
5
2005-07-01
2005-06-17
No

"Spurious notifications" are mentioned on the page
"http://tcl.tk/man/tcl8.5/TclLib/Thread.htm#M7".
=> The following code in the function
"Tcl_FinalizeNotifier" (file
"http://cvs.sourceforge.net/viewcvs.py/tcl/tcl/unix/tclUnixNotfy.c?rev=1.20.2.1&view=markup")
should be improved.
"...
Tcl_ConditionWait(&notifierCV, &notifierMutex, NULL);
result = Tcl_JoinThread(notifierThread, &ignored);
..."

Please add the test for the predicate in a while loop.

Discussion

  • Zoran Vasiljevic

    • assigned_to: andreas_kupries --> vasiljevic
     
  • Zoran Vasiljevic

    Logged In: YES
    user_id=95086

    This is correct. I also noticed this bug while going after some
    other bug reported in Tk project.
    This should be solved BUT I'll refrain from this until
    the 8.4.11 goes out.
    I'm assigning this to myself now.

     
  • Zoran Vasiljevic

    Logged In: YES
    user_id=95086

    This is now fixed in core-8-4-branch and head.

     
  • Zoran Vasiljevic

    • status: open --> closed-fixed