Skip to content

Commit

Permalink
naming threads
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Oct 29, 2024
1 parent b36ca30 commit 6f23930
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions time-manager/System/TimeManager.hs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ initialize timeout =
defaultReaperSettings
{ reaperAction = mkListAction prune
, reaperDelay = timeout
, reaperThreadName = "TimeManager (Reaper)"
}
where
prune m@(Handle _ actionRef stateRef) = do
Expand Down
1 change: 1 addition & 0 deletions warp/Network/Wai/Handler/Warp/Date.hs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ initialize =
mkAutoUpdate
defaultUpdateSettings
{ updateAction = formatHTTPDate <$> getCurrentHTTPDate
, updateThreadName = "Date cacher (AutoUpdate)"
}

#ifdef WINDOWS
Expand Down
1 change: 1 addition & 0 deletions warp/Network/Wai/Handler/Warp/FdCache.hs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ initialize duration = MutableFdCache <$> mkReaper settings
, reaperCons = uncurry insert
, reaperNull = isEmpty
, reaperEmpty = empty
, reaperThreadName = "Fd cacher (Reaper) "
}

clean :: FdCache -> IO (FdCache -> FdCache)
Expand Down
1 change: 1 addition & 0 deletions warp/Network/Wai/Handler/Warp/FileInfoCache.hs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ initialize duration = mkReaper settings
, reaperCons = \(path, v) -> M.insert path v
, reaperNull = M.isEmpty
, reaperEmpty = M.empty
, reaperThreadName = "File info cacher (Reaper)"
}

override :: Cache -> IO (Cache -> Cache)
Expand Down

0 comments on commit 6f23930

Please sign in to comment.