public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Per Bothner <per@bothner.com>
To: Panicz Maciej Godek <godek.maciek@gmail.com>, kawa <kawa@sourceware.org>
Subject: Re: Evaluating definitions from another thread
Date: Sun, 12 May 2024 14:22:36 -0700	[thread overview]
Message-ID: <7c665cc9-9032-447e-b5b7-e564af1f4ed5@bothner.com> (raw)
In-Reply-To: <CAMFYt2YQ6zba0GYjJ=Pfx70_jq71PyDhZiX6b6iC-HFErJBm=w@mail.gmail.com>



On 5/12/24 2:08 PM, Panicz Maciej Godek wrote:
> I didn't quite understand why the constructor of SharedLocation requires a timestamp, and I passed it (java.lang.System:currentTimeMillis).
> Is that OK?

No. It is not an actual timestamp - more of a version number.
(The fact that 'timestamp' is an int and currentTimeMillis is a long should tell you
that currentTimeMillis() is not a suitable value for 'timestamp'.)

The timestamp is used to control whether a binding is shared.
It's been so long since I wrote this code, I don't remember precisely how it works.
You can look at the code.
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/

      reply	other threads:[~2024-05-12 21:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-10 20:15 Panicz Maciej Godek
2024-05-10 20:19 ` Per Bothner
2024-05-10 21:03   ` Panicz Maciej Godek
2024-05-11  0:49     ` Per Bothner
     [not found]       ` <CAMFYt2bqd3LNLPFgdhpaDrSkdM_SLGCGYnSqs0-gw0Z9n-OFqw@mail.gmail.com>
     [not found]         ` <4c435a3e-0517-46c5-b541-88f1355dfe4b@bothner.com>
2024-05-12 21:08           ` Panicz Maciej Godek
2024-05-12 21:22             ` Per Bothner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7c665cc9-9032-447e-b5b7-e564af1f4ed5@bothner.com \
    --to=per@bothner.com \
    --cc=godek.maciek@gmail.com \
    --cc=kawa@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).