From: Junio C Hamano Date: Wed, 25 Nov 2020 23:12:07 GMT Subject: Re: [PATCH] move sleep_millisec to git-compat-util.h Message-ID: In-Reply-To: <018301d6c371$37bf6820$a73e3860$@nexbridge.com> "Randall S. Becker" writes: > 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.