update
This commit is contained in:
parent
7f3934520a
commit
d3a6f04abf
2 changed files with 9 additions and 8 deletions
|
@ -2,12 +2,17 @@
|
||||||
{-# LANGUAGE BangPatterns #-}
|
{-# LANGUAGE BangPatterns #-}
|
||||||
|
|
||||||
{- git-annex watch daemon
|
{- git-annex watch daemon
|
||||||
|
-
|
||||||
|
- Copyright 2012 Joey Hess <joey@kitenet.net>
|
||||||
|
-
|
||||||
|
- Licensed under the GNU GPL version 3 or higher.
|
||||||
-
|
-
|
||||||
- Overview of threads and MVars, etc:
|
- Overview of threads and MVars, etc:
|
||||||
-
|
-
|
||||||
- Thread 1: Parent
|
- Thread 1: parent
|
||||||
- The initial thread run, double forks to background, starts other
|
- The initial thread run, double forks to background, starts other
|
||||||
- threads, and then stops, waiting for them to terminate.
|
- threads, and then stops, waiting for them to terminate,
|
||||||
|
- or for a ctrl-c.
|
||||||
- Thread 2: inotify
|
- Thread 2: inotify
|
||||||
- Notices new files, and calls handlers for events, queuing changes.
|
- Notices new files, and calls handlers for events, queuing changes.
|
||||||
- Thread 3: inotify internal
|
- Thread 3: inotify internal
|
||||||
|
@ -18,17 +23,13 @@
|
||||||
- index, then commits.
|
- index, then commits.
|
||||||
-
|
-
|
||||||
- State MVar:
|
- State MVar:
|
||||||
- The Annex state is stored here, which allows recuscitating the
|
- The Annex state is stored here, which allows resuscitating the
|
||||||
- Annex monad in IO actions run by the inotify and committer
|
- Annex monad in IO actions run by the inotify and committer
|
||||||
- threads. Thus, a single state is shared amoung the threads, and
|
- threads. Thus, a single state is shared amoung the threads, and
|
||||||
- only one at a time can access it.
|
- only one at a time can access it.
|
||||||
- ChangeChan STM TChan:
|
- ChangeChan STM TChan:
|
||||||
- Changes are indicated by writing to this channel. The committer
|
- Changes are indicated by writing to this channel. The committer
|
||||||
- reads from it.
|
- reads from it.
|
||||||
-
|
|
||||||
- Copyright 2012 Joey Hess <joey@kitenet.net>
|
|
||||||
-
|
|
||||||
- Licensed under the GNU GPL version 3 or higher.
|
|
||||||
-}
|
-}
|
||||||
|
|
||||||
module Command.Watch where
|
module Command.Watch where
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Name: git-annex
|
Name: git-annex
|
||||||
Version: 3.20120611
|
Version: 3.20120612
|
||||||
Cabal-Version: >= 1.8
|
Cabal-Version: >= 1.8
|
||||||
License: GPL
|
License: GPL
|
||||||
Maintainer: Joey Hess <joey@kitenet.net>
|
Maintainer: Joey Hess <joey@kitenet.net>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue