summaryrefslogtreecommitdiff
path: root/rts/Pool.c
Commit message (Collapse)AuthorAgeFilesLines
* rts: use allocation helpers from RtsUtilsnineonine2021-12-101-3/+3
| | | | | | | Just a tiny cleanup inspired by the following comment: https://gitlab.haskell.org/ghc/ghc/-/issues/19437#note_334271 I was just getting familiar with rts code base so I thought might as well do this.
* Make `PosixSource.h` installed and under `rts/`John Ericson2021-08-091-1/+1
| | | | | | is used outside of the rts so we do this rather than just fish it out of the repo in ad-hoc way, in order to make packages in this repo more self-contained.
* Prefer #if defined to #ifdefBen Gamari2017-04-281-6/+6
| | | | Our new CPP linter enforces this.
* rts: Replace `nat` with `uint32_t`Erik de Castro Lopo2016-05-051-11/+11
| | | | | | | | | | | | The `nat` type was an alias for `unsigned int` with a comment saying it was at least 32 bits. We keep the typedef in case client code is using it but mark it as deprecated. Test Plan: Validated on Linux, OS X and Windows Reviewers: simonmar, austin, thomie, hvr, bgamari, hsyl20 Differential Revision: https://phabricator.haskell.org/D2166
* rts/Pool: Add poolTryTakeBen Gamari2015-11-261-11/+30
|
* rts: Add simple resource poolBen Gamari2015-11-231-0/+180