summaryrefslogtreecommitdiff
path: root/src/win32/pthread.c
Commit message (Collapse)AuthorAgeFilesLines
* React to review feedbackPhilip Kelley2014-06-071-4/+5
|
* Win32: Fix object::cache::threadmania test on x64Philip Kelley2014-06-071-48/+60
|
* Bug fixes and cleanupsRussell Belfer2013-09-171-0/+1
| | | | | | | | | | | | | This contains a few bug fixes and some header and API cleanups. The main API change is that filters should now use GIT_PASSTHROUGH to indicate that they wish to skip processing a file instead of GIT_ENOTFOUND. The bug fixes include a possible out-of-range buffer access in the ident filter, a filter ordering problem I introduced into the custom filter tests on Windows, and a filter buf NUL termination issue that was coming up on Linux.
* Add simple global shutdown hooksRussell Belfer2013-09-171-9/+9
| | | | | | | | | | Increasingly there are a number of components that want to do some cleanup at global shutdown time (at least if there are not going to be memory leaks). This creates a very simple system of shutdown hooks that will be invoked by git_threads_shutdown. Right now, the maximum number of hooks is hardcoded, but since adding a hook is not a public API, it should be fine and I thought it was better to start off with really simple code.
* Convert to our own SRWLOCK type on Win32Russell Belfer2013-08-271-1/+1
|
* Load SRWLock APIs at runtimeRussell Belfer2013-08-261-9/+80
| | | | | | This loads SRWLock APIs at runtime and in their absence (i.e. on Windows before Vista) falls back on a regular CRITICAL_SECTION that will not permit concurrent readers.
* Add SRWLock implementation of rwlocks for Win32Russell Belfer2013-08-221-0/+38
|
* thread: fix segfault on Windows 64 bitsyorah2013-05-301-1/+3
| | | | | | `lpExitCode` is a pointer to a long. A long is 32 bits wide on Windows. It means that on Windows 64bits, `GetExitCodeThread()` doesn't set/clear the high-order bytes of the 64 bits memory space pointed at by `value_ptr`.
* Make indexer use shared packfile open codeRussell Belfer2013-04-221-2/+3
| | | | | | | | | | | The indexer was creating a packfile object separately from the code in pack.c which was a problem since I put a call to git_mutex_init into just pack.c. This commit updates the pack function for creating a new pack object (i.e. git_packfile_check()) so that it can be used in both places and then makes indexer.c use the shared initialization routine. There are also a few minor formatting and warning message fixes.
* Fixes for Windows cas/threading stuffRussell Belfer2013-04-221-6/+11
|
* update copyrightsEdward Thomson2013-01-081-1/+1
|
* Incremental improvements to pack-objects logicPhilip Kelley2012-10-171-0/+3
| | | | Incorporate feedback for incr. improvements to pack-objects
* Support pthread_cond_* on Win32Philip Kelley2012-10-161-0/+65
|
* Continue error conversionRussell Belfer2012-03-141-5/+8
| | | | | | | This converts blob.c, fileops.c, and all of the win32 files. Also, various minor cleanups throughout the code. Plus, in testing the win32 build, I cleaned up a bunch (although not all) of the warnings with the 64-bit build.
* Clean up GIT_UNUSED macros on all platformsRussell Belfer2012-03-021-4/+4
| | | | | | | | | | | | | | | | | | | It turns out that commit 31e9cfc4cbcaf1b38cdd3dbe3282a8f57e5366a5 did not fix the GIT_USUSED behavior on all platforms. This commit walks through and really cleans things up more thoroughly, getting rid of the unnecessary stuff. To remove the use of some GIT_UNUSED, I ended up adding a couple of new iterators for hashtables that allow you to iterator just over keys or just over values. In making this change, I found a bug in the clar tests (where we were doing *count++ but meant to do (*count)++ to increment the value). I fixed that but then found the test failing because it was not really using an empty repo. So, I took some of the code that I wrote for iterator testing and moved it to clar_helpers.c, then made use of that to make it easier to open fixtures on a per test basis even within a single test file.
* Update Copyright headerschu2012-02-131-1/+1
| | | | Signed-off-by: schu <schu-github@schulog.org>
* Tabify everythingVicent Marti2011-09-191-23/+23
| | | | | | There were quite a few places were spaces were being used instead of tabs. Try to catch them all. This should hopefully not break anything. Except for `git blame`. Oh well.
* Cleanup legal dataVicent Marti2011-09-191-23/+3
| | | | | | | | | | 1. The license header is technically not valid if it doesn't have a copyright signature. 2. The COPYING file has been updated with the different licenses used in the project. 3. The full GPLv2 header in each file annoys me.
* win32/pthread.c: Move to new error handling mechanismJakob Pfender2011-05-231-1/+1
|
* Fix bug in the way pthead_mutex_t was being destroyed in win32.kelly.leahy2011-05-081-4/+3
| | | | | | | Win32 critical section objects (CRITICAL_SECTION) are not kernel objects. Only kernel objects are destroyed by using CloseHandle. Critical sections are supposed to be deleted with the DeleteCriticalSection API (http://msdn.microsoft.com/en-us/library/ms682552(VS.85).aspx).
* Thread safe cacheVicent Marti2011-03-201-42/+8
|
* Add proper threading support to libgit2Vicent Marti2011-03-151-0/+120
We now depend on libpthread on all Unix platforms (should be installed by default) and use a simple wrapper for Windows threads under Win32. Signed-off-by: Vicent Marti <tanoku@gmail.com>