<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 07/12/2012 02:58 PM, Erik Søe
Sørensen wrote:<br>
</div>
<blockquote
cite="mid:CAO1s=UXrfhsNvzox3L5qhY_QqOshvWBG1fXgbjLJFnHBStr5FA@mail.gmail.com"
type="cite">
<div class="gmail_quote">When I implemented now() in Erjang, I
found a lock-free algorithm for it which has the right
"timestamp must be monotonically increasing" property.<br>
</div>
</blockquote>
<br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<a href="http://www.erlang.org/doc/man/erlang.html#now-0">http://www.erlang.org/doc/man/erlang.html#now-0</a><br>
"
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<span style="color: rgb(0, 0, 0); font-family:
Verdana,Arial,Helvetica,sans-serif; font-size: medium; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: normal; orphans: 2; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; background-color: rgb(255, 255, 255); display:
inline ! important; float: none;">It is also guaranteed that
subsequent calls to this BIF returns continuously increasing
values."<br>
<br>
I don't think </span><span style="color: rgb(0, 0, 0);
font-family: Verdana, Arial, Helvetica, sans-serif; font-size:
medium; font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: normal; orphans: 2;
text-align: -webkit-auto; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); display: inline !important;
float: none; ">your solution quarrantees this.<br>
<br>
It can be implemented with N-bit CAS for N-bit time value.<br>
<br>
--Regards,<br>
Wojtek Narczynski<br>
</span>
</body>
</html>