[metrics-bugs] #24824 [Metrics/Website]: Either sleep() or wait() in a synchronized block

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Feb 6 15:30:27 UTC 2018


#24824: Either sleep() or wait() in a synchronized block
-----------------------------+------------------------------
 Reporter:  karsten          |          Owner:  metrics-team
     Type:  defect           |         Status:  needs_review
 Priority:  Medium           |      Milestone:
Component:  Metrics/Website  |        Version:
 Severity:  Normal           |     Resolution:
 Keywords:                   |  Actual Points:
Parent ID:                   |         Points:
 Reviewer:  iwakeh           |        Sponsor:
-----------------------------+------------------------------

Comment (by iwakeh):

 As this is not about synchronizing concurrent access to the index, but
 simply for letting a requesting thread wait until an index might be
 available, the Thread.sleep solution seems more appropriate.
 (Unrelated: There is a `this.` missing in the while condition.)

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/24824#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the metrics-bugs mailing list