stm-stats: retry statistics for STM transactions

[ bsd3, concurrency, library ] [ Propose Tags ]

This module provides functions that can replace calls to atomically and count how often the transaction was retried until it succeeded. It can emit warnings when transaction are retried more often than a given threshold, and provides global statistics across all transaction.

As an additional feature, if the transaction was named, transaction-related exceptions such as BlockedIndefinitelyOnSTM are replaced by variants that indicate which transaction caused the exception.


Added warnInSTMFunction to TrackSTMConf.
Bugfix with the global retry count warning.
Initial Release




Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],
Dependencies base (>=4 && <5), containers, stm, template-haskell, time [details]
License BSD-3-Clause
Author David Leuschner <>, Stefan Wehr <>, Joachim Breitner <>
Maintainer Joachim Breitner <>
Category Concurrency
Source repo head: darcs get
Uploaded by JoachimBreitner at 2011-10-10T18:16:36Z
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 2378 total (9 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]