Path: csiph.com!news.mixmin.net!news.albasani.net!.POSTED!not-for-mail From: j4n bur53 Newsgroups: comp.lang.java.programmer Subject: Re: Library for Escalable Locks, Slimmest API? Date: Sat, 13 Aug 2016 11:39:28 +0200 Organization: albasani.net Lines: 9 Message-ID: References: <26c75c11-5955-45a6-919d-3de1255c9c15@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net HwKD1TnTtUpo1hmA0oMk52fQVaospchZlhL23MEYpqT4+Fz2J5MMzs+UTnNYtREOIvh2pH/Yiql11oozCp52KvtUUxpo1Ca6xkQmgE9Tlgvcz55brG39zw30CJedXidP NNTP-Posting-Date: Sat, 13 Aug 2016 09:39:28 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="TrDvbYlaOr2flPwPGZgj0dkhPYPoky6TJo1C/4eG38BoyU9a7vwefmcMo/Br/hgCuhSxyhsXuZzfNLrYHm1Q8AoTdYM1RvZd7jN81/VRVBRNsUFEIfFvF1vRqp0hF61e"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 In-Reply-To: Cancel-Lock: sha1:DM29lZdEn42ixRFaKZDLRtcMGq8= Xref: csiph.com comp.lang.java.programmer:35297 j4n bur53 schrieb: > By hardening I mean the synchronization primitives, > they might contain programming errors, especially since > as of now I didn't find a library and rolled my own. They > are already partially open source here: Known error at the moment, I using System.currentTimeMillis() which can have gaps, hence the time-out might sporadically not work correctly. Should use System.nanoTime() or somesuch.