Commit e976b56dda6ae3d7d81bd114b61750e97cc918d3

Russell Belfer 2013-04-15T14:27:53

Add git__compare_and_swap and use it This removes the lock from the repository object and changes the internals to use the new atomic git__compare_and_swap to update the _odb, _config, _index, and _refdb variables in a threadsafe manner.