[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #24824 [Metrics/Website]: Either sleep() or wait() in a synchronized block
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs