<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/compat/win32/pthread.c, branch seen</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=seen</id>
<link rel='self' href='https://git.shady.money/git/atom?h=seen'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2026-04-15T15:44:32Z</updated>
<entry>
<title>compat/win32: add pthread_cond_timedwait</title>
<updated>2026-04-15T15:44:32Z</updated>
<author>
<name>Paul Tarjan</name>
<email>github@paulisageek.com</email>
</author>
<published>2026-04-15T13:27:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8372c88f583b8910f1e57c00c89c0afcca7018dc'/>
<id>urn:sha1:8372c88f583b8910f1e57c00c89c0afcca7018dc</id>
<content type='text'>
Add a pthread_cond_timedwait() implementation to the Windows pthread
compatibility layer using SleepConditionVariableCS() with a millisecond
timeout computed from the absolute deadline.

Signed-off-by: Paul Tarjan &lt;github@paulisageek.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>win32: return error if SleepConditionVariableCS fails</title>
<updated>2025-11-20T22:45:26Z</updated>
<author>
<name>Greg Funni</name>
<email>gfunni234@gmail.com</email>
</author>
<published>2025-11-18T15:41:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2367c6bcd600882d0ea70d4f654c8cfa5c1f53ac'/>
<id>urn:sha1:2367c6bcd600882d0ea70d4f654c8cfa5c1f53ac</id>
<content type='text'>
If it fails, return an error.

Signed-off-by: Greg Funni &lt;gfunni234@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>compat: mark unused parameters in win32/mingw functions</title>
<updated>2024-08-28T16:51:18Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2024-08-28T04:00:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b652382d761607c76258e2e91fa753dffe5c21dc'/>
<id>urn:sha1:b652382d761607c76258e2e91fa753dffe5c21dc</id>
<content type='text'>
The compat/ directory contains many stub functions, wrappers, and so on
that have to conform to a specific interface, but don't necessarily need
to use all of their parameters. Let's mark them to avoid complaints from
-Wunused-parameter.

This was done mostly via guess-and-check with the Windows build in
GitHub CI. I also confirmed that the win+VS build is similarly happy.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>win32: close handles of threads that have been joined</title>
<updated>2023-01-04T06:39:47Z</updated>
<author>
<name>Seija Kijin</name>
<email>doremylover123@gmail.com</email>
</author>
<published>2023-01-03T16:20:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=238a9dfe86d18214bc0b8be079feee01a2fdc407'/>
<id>urn:sha1:238a9dfe86d18214bc0b8be079feee01a2fdc407</id>
<content type='text'>
After the thread terminates, the handle to the
original thread should be closed.

This change makes win32_pthread_join POSIX compliant.

Signed-off-by: Seija Kijin &lt;doremylover123@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>win32: prepare pthread.c for change by formatting</title>
<updated>2023-01-04T06:39:47Z</updated>
<author>
<name>Seija Kijin</name>
<email>doremylover123@gmail.com</email>
</author>
<published>2023-01-03T16:20:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=23a6a12dfa317e48627c8fec72ee80151276bad6'/>
<id>urn:sha1:23a6a12dfa317e48627c8fec72ee80151276bad6</id>
<content type='text'>
File has been formatted to meet coding guidelines.

Signed-off-by: Seija Kijin &lt;doremylover123@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>win32: replace pthread_cond_*() with much simpler code</title>
<updated>2018-11-14T06:14:22Z</updated>
<author>
<name>Loo Rong Jie</name>
<email>loorongjie@gmail.com</email>
</author>
<published>2018-11-13T18:52:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c73b7ad5481647545020bcfabb0fe679792b20db'/>
<id>urn:sha1:c73b7ad5481647545020bcfabb0fe679792b20db</id>
<content type='text'>
The Win32 CONDITION_VARIABLE has better performance and is easier to
maintain, as the code is a lot shorter now (the semantics of the
CONDITION_VARIABLE matches the pthread_cond_t very well).

Note: CONDITION_VARIABLE is not available in Windows XP and below,
but the declared minimal Windows version required to build and run
Git for Windows is Windows Vista (which is also beyond its
end-of-life, but for less long than Windows XP), so that's okay.

Signed-off-by: Loo Rong Jie &lt;loorongjie@gmail.com&gt;
Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>compat/win32/pthread.c: Fix a sparse warning</title>
<updated>2013-04-28T19:26:45Z</updated>
<author>
<name>Ramsay Jones</name>
<email>ramsay@ramsay1.demon.co.uk</email>
</author>
<published>2013-04-27T19:16:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9c3b051f931af9e3bcc765a4c83426e3be7de7f1'/>
<id>urn:sha1:9c3b051f931af9e3bcc765a4c83426e3be7de7f1</id>
<content type='text'>
Sparse issues a 'Using plain integer as NULL pointer' warning when
initializing an pthread_t structure with an '{ 0 }' initializer.
The first field of the pthread_t structure has type HANDLE (void *),
so in order to suppress the warning, we replace the initializer
expression with '{ NULL }'.

Signed-off-by: Ramsay Jones &lt;ramsay@ramsay1.demon.co.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Windows: more pthreads functions</title>
<updated>2010-03-07T08:37:36Z</updated>
<author>
<name>Johannes Sixt</name>
<email>j6t@kdbg.org</email>
</author>
<published>2010-03-06T15:40:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=912b26324dbc1eb9500e49c90d271a330cbcb30b'/>
<id>urn:sha1:912b26324dbc1eb9500e49c90d271a330cbcb30b</id>
<content type='text'>
This adds:

   pthread_self
   pthread_equal
   pthread_exit
   pthread_key_create
   pthread_setspecific
   pthread_getspecific

Signed-off-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Typofixes outside documentation area</title>
<updated>2010-02-04T05:28:17Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-02-04T05:23:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9517e6b84357252e1882091343661c34d978771e'/>
<id>urn:sha1:9517e6b84357252e1882091343661c34d978771e</id>
<content type='text'>
    begining -&gt; beginning
    canonicalizations -&gt; canonicalization
    comand -&gt; command
    dewrapping -&gt; unwrapping
    dirtyness -&gt; dirtiness
    DISCLAMER -&gt; DISCLAIMER
    explicitely -&gt; explicitly
    feeded -&gt; fed
    impiled -&gt; implied
    madatory -&gt; mandatory
    mimick -&gt; mimic
    preceeding -&gt; preceding
    reqeuest -&gt; request
    substition -&gt; substitution

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Implement pthread_cond_broadcast on Windows</title>
<updated>2010-01-30T03:42:40Z</updated>
<author>
<name>Johannes Sixt</name>
<email>j6t@kdbg.org</email>
</author>
<published>2010-01-29T23:54:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=947c3464e49522c55296a8191aed7946bd0f4308'/>
<id>urn:sha1:947c3464e49522c55296a8191aed7946bd0f4308</id>
<content type='text'>
See http://www.cse.wustl.edu/~schmidt/win32-cv-1.html, section "The
SignalObjectAndWait solution". But note that this implementation does not
use SignalObjectAndWait (which is needed to achieve fairness, but we do
not need fairness).

Note that our implementations of pthread_cond_broadcast and
pthread_cond_signal require that they are invoked with the mutex held that
is used in the pthread_cond_wait calls.

Signed-off-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
