1. 18 Nov, 2016 1 commit
    • threads: introduce `git_thread_exit` · 82f15896
      Introduce `git_thread_exit`, which will allow threads to terminate at an
      arbitrary time, returning a `void *`.  On Windows, this means that we
      need to store the current `git_thread` in TLS, so that we can set its
      `return` value when terminating.
      
      We cannot simply use `ExitThread`, since Win32 returns `DWORD`s from
      threads; we return `void *`.
      Edward Thomson committed
  2. 14 Mar, 2016 1 commit
  3. 12 Nov, 2015 1 commit
  4. 28 Jul, 2015 1 commit
  5. 23 Apr, 2015 1 commit
  6. 18 Apr, 2015 1 commit
  7. 17 Apr, 2015 1 commit
  8. 16 Sep, 2014 1 commit
  9. 18 Aug, 2014 1 commit
  10. 12 Jun, 2014 2 commits
  11. 11 Jun, 2014 1 commit
  12. 17 Sep, 2013 1 commit
    • Add simple global shutdown hooks · a3aa5f4d
      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.
      Russell Belfer committed
  13. 22 Apr, 2013 1 commit
  14. 08 Jan, 2013 1 commit
  15. 13 Nov, 2012 3 commits
  16. 20 Aug, 2012 1 commit
    • Make the memory-window conrol structures global · 8cef828d
      Up to now, the idea was that the user would do all the operations for
      one repository in the same thread. Thus we could have the
      memory-mapped window information thread-local and avoid any locking.
      
      This is not practical in a few environments, such as Apple's GCD which
      allocates threads arbitrarily or the .NET CLR, where the OS-level
      thread can change at any moment.
      
      Make the control structure global and protect it with a mutex so we
      don't depend on the thread currently executing the code.
      Carlos Martín Nieto committed
  17. 17 Jul, 2012 1 commit
  18. 05 Mar, 2012 1 commit
  19. 13 Feb, 2012 1 commit
  20. 16 Nov, 2011 1 commit