Go to file
Andreas Ericsson 36f0f61fc8 Add compiler/platform agnostic thread-local storage
It doesn't cover all cases, but we can work on those as
we go along. For now, gcc, MSVC++, Intel C/C++, IBM XL C/C++,
Sun Studio C/C++ and Borland C++ Builder are the supported
compilers (although we boldly assume that they all are of
a recent enough version to support thread-local storage).

This is intended to be used in upcoming patches that implement
graceful (but TLS-dependant) error-handling in the library.

As an added bonus, we also bring the online_cpus() function
from git.git to detect the number of usable cpu's.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
2008-11-18 10:32:53 -08:00
src Add compiler/platform agnostic thread-local storage 2008-11-18 10:32:53 -08:00
tests Add git_oid_cpy, git_oid_cmp as inline functions 2008-11-03 18:43:04 -08:00
.gitignore Move public headers to src/git 2008-11-18 10:32:53 -08:00
.HEADER Switch the license from BSD to GPL+libgcc exception 2008-11-01 15:55:47 -07:00
api.doxygen Add git_oid_cpy, git_oid_cmp as inline functions 2008-11-03 18:43:04 -08:00
CONVENTIONS Move include files to include/git/, drop git_ prefix from file names 2008-11-01 15:42:23 -07:00
COPYING Switch the license from BSD to GPL+libgcc exception 2008-11-01 15:55:47 -07:00
git.git-authors List git.git authors consenting to relicense their code 2008-11-18 10:32:53 -08:00
Makefile Add a fake and phony install-headers target 2008-11-18 10:32:53 -08:00