libgit2/libgit2 — pull request #988 by pwkelley (2012-10-16 20:34:50+00:00)
Title: Incremental improvements to pack-objects logic

@schu

One of the approaches I was looking at for solving the condition variables problem on Win32 was to simply stop using condition variables. That's not the direction we ended up taking, but I spent a good bit of time in `pack-objects.c` as part of that investigation.

While I was there I made what I think are some incremental improvements, and I added some comments. The biggest change, I think, is that three synchronization objects that were previously static have been moved into the `git_packbuilder` structure. I also improved the robustness of the `git_packbuilder_new` and `git_packbuilder_free` functions with respect to out-of-memory conditions.

I look forward to hearing if you (or anyone else) has any comments!