summaryrefslogtreecommitdiff
path: root/Assistant/Threads/PushNotifier.hs
blob: cc53097121554cbc699f942e804d49a229087bef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{- git-annex assistant push notification thread
 -
 - Copyright 2012 Joey Hess <joey@kitenet.net>
 -
 - Licensed under the GNU GPL version 3 or higher.
 -}

module Assistant.Threads.PushNotifier where

import Assistant.Common
import Assistant.Pushes

thisThread :: ThreadName
thisThread = "PushNotifier"

pushNotifierThread :: PushNotifier -> NamedThread
pushNotifierThread pushnotifier = thread $ forever $ do
	waitPush pushnotifier
	-- TODO
	where
		thread = NamedThread thisThread