Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ethomson
Copy link
Member

@ethomson ethomson commented Dec 6, 2020

I wanted to merge #5602, but I wanted to see if we could do it without allocation. Indeed we can, so I refactored it a bit to be able to do that.

ethomson and others added 5 commits December 6, 2020 00:55
The number of CPUs is useful information for creating a thread pool or a
number of workers, but it's not really about threading directly.  Evict
it from the thread file
Clarify the `git_atomic` type and functions now that we have a 64 bit
version as well (`git_atomic64`).
This adds a generic TLS interface for anyone to store TLS data. It is designed to work regardless of whether threading support is built into the library or not.

Nobody in the library should directly interface with the data on the TLS struct, so it's been built to be opaque even in the library.

Requires the allocator to be initialized before use.
@ethomson ethomson force-pushed the ethomson/tlsdata branch 4 times, most recently from 20fc707 to 1bc425f Compare December 8, 2020 14:46
Provide more clarity for Win32 calling conventions - now that we always
compile to __cdecl on Win32, we'll define that as the the libgit2
calling convention.  Also offer NTAPI (__stdcall) calling conventions
for things that need callbacks from NTAPI code (eg fiber-local storage).
ethomson and others added 2 commits December 8, 2020 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants