git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] move sleep_millisec to git-compat-util.h

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 25, 2020, 23:12 UTC
Message-ID
<xmqqy2ipav5k.fsf@gitster.c.googlers.com>
In-Reply-To
<018301d6c371$37bf6820$a73e3860$@nexbridge.com>
"Randall S. Becker" <rsbecker@nexbridge.com> writes:
Show 8 quoted lines
> I just chatted with my team and we think that sticking with the existing
> poll call is probably better in the long term. We are planning to try to get
> git to work using PUT threads - but that is a longer project for a whole
> slew of reasons. It involves pulling all or most of the FLOSS stuff out, or
> making that configurable to use FLOSS when not using threads and not using
> FLOSS when using threads. It might be useful, however, to use usleep()
> instead of poll(NULL) when threading is used on most platforms as it is a
> more effective way of context switching between threads than select().

Yeah, if usleep() is portable enough, that would probably be the ideal direction to go.

Previous: Randall S. Becker
Message 6 of 6 in “move sleep_millisec to git-compat-util.h”
  1. move sleep_millisec to git-compat-util.hHan-Wen Nienhuys via GitGitGadget, Nov 24, 2020
  2. Junio C HamanoNov 24, 2020
  3. Randall S. BeckerNov 24, 2020
  4. Junio C HamanoNov 25, 2020
  5. Randall S. BeckerNov 25, 2020
  6. Junio C HamanoNov 25, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.