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

[PATCH v3 1/3] compat/win32/pthread.h: Add an pthread_key_delete() implementation

From
Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Date
Apr 11, 2012, 05:49 UTC
Message-ID
<1334123388-6083-2-git-send-email-pclouds@gmail.com>
In-Reply-To
<1334123388-6083-1-git-send-email-pclouds@gmail.com>
From: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
 compat/win32/pthread.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/compat/win32/pthread.h b/compat/win32/pthread.h
index 2e20548..8ad1873 100644
--- a/compat/win32/pthread.h
+++ b/compat/win32/pthread.h
@@ -86,6 +86,11 @@ static inline int pthread_key_create(pthread_key_t *keyp, void (*destructor)(voi
 	return (*keyp = TlsAlloc()) == TLS_OUT_OF_INDEXES ? EAGAIN : 0;
 }
 
+static inline int pthread_key_delete(pthread_key_t key)
+{
+	return TlsFree(key) ? 0 : EINVAL;
+}
+
 static inline int pthread_setspecific(pthread_key_t key, const void *value)
 {
 	return TlsSetValue(key, (void *)value) ? 0 : EINVAL;
-- 
1.7.3.1.256.g2539c.dirty
Previous: Nguyễn Thái Ngọc DuyNext: Nguyễn Thái Ngọc Duy
Message 2 of 13 in “Multithread index-pack”
  1. 0/3 Multithread index-packNguyễn Thái Ngọc Duy, Apr 11, 2012
  2. 1/3 compat/win32/pthread.h: Add an pthread_key_delete() implementationNguyễn Thái Ngọc Duy, Apr 11, 2012
  3. 2/3 index-pack: split second pass obj handling into own functionNguyễn Thái Ngọc Duy, Apr 11, 2012
  4. 3/3 index-pack: support multithreaded delta resolvingNguyễn Thái Ngọc Duy, Apr 11, 2012
  5. Junio C HamanoMay 3, 2012
  6. Junio C HamanoMay 4, 2012
  7. Nguyen Thai Ngoc DuyMay 4, 2012
  8. Junio C HamanoMay 4, 2012
  9. 1/4 compat/win32/pthread.h: Add an pthread_key_delete() implementationNguyễn Thái Ngọc Duy, May 6, 2012
  10. 2/4 index-pack: restructure pack processing into three main functionsNguyễn Thái Ngọc Duy, May 6, 2012
  11. Junio C HamanoMay 8, 2012
  12. 3/4 index-pack: support multithreaded delta resolvingNguyễn Thái Ngọc Duy, May 6, 2012
  13. 4/4 index-pack: disable threading if NO_PREAD is definedNguyễn Thái Ngọc Duy, May 6, 2012

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.