summaryrefslogtreecommitdiff
path: root/contrib/epee/src/mlocker.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Copyright: Update to 2022mj-xmr2022-03-041-1/+2
|
* Merge pull request #4951Riccardo Spagni2019-01-061-0/+3
|\ | | | | | | b21a60ef mlocker: set default log category (moneromooo-monero)
| * mlocker: set default log categorymoneromooo-monero2018-12-071-0/+3
| |
* | Merge pull request #4925Riccardo Spagni2018-12-121-1/+0
|\ \ | | | | | | | | | | | | | | | ab783b17 easylogging++: ensure logger is initialized before main (moneromooo-monero) 9b69a0ae daemon: print monero version at startup when calling a detached daemon (moneromooo-monero) 4d71d463 mlocker: remove early page size log (moneromooo-monero)
| * | mlocker: remove early page size logmoneromooo-monero2018-11-301-1/+0
| | | | | | | | | | | | | | | | | | It comes before the logger is initialized, so gets displayed even though it should not be by default, and apparenly comes too early for (some versions of) Android, where it crashes.
* | | Merge pull request #4883Riccardo Spagni2018-12-041-2/+2
|\ \ \ | |_|/ |/| | | | | 40485a73 mlocker: fix access to global lock map after dtor on exit (moneromooo-monero)
| * | mlocker: fix access to global lock map after dtor on exitmoneromooo-monero2018-11-221-2/+2
| |/ | | | | | | as the lock, it now leaks
* | Merge pull request #4876Riccardo Spagni2018-12-041-3/+12
|\ \ | | | | | | | | | 1132436f Only show a single mlock() error, to avoid flooding the log (Martijn Otto)
| * | Only show a single mlock() error, to avoid flooding the logMartijn Otto2018-11-261-3/+12
| |/
* | Merge pull request #4875Riccardo Spagni2018-12-041-0/+8
|\ \ | | | | | | | | | 23829ebb mlocker: don't throw from lock/unlock (moneromooo-monero)
| * | mlocker: don't throw from lock/unlockmoneromooo-monero2018-11-201-0/+8
| |/ | | | | | | | | | | | | This prevents exceptions from showing up in various awkward places such as dtors, since the only exception that can be thrown is a lock failure, and nothing handles a lock failure anyway.
* | Merge pull request #4853Riccardo Spagni2018-12-041-1/+2
|\ \ | |/ |/| | | 2b3595d0 various: do not propagate exception through dtor (moneromooo-monero)
| * various: do not propagate exception through dtormoneromooo-monero2018-11-151-1/+2
| | | | | | | | Coverity 189689, 189690, 189692, 189695
* | mlocker: fix dtor ordering problemmoneromooo-monero2018-11-021-2/+2
|/ | | | leak the mutex instead, it's a one off
* common: add a class to safely wrap mlock/munlockmoneromooo-monero2018-08-161-0/+182
This class will allow mlocking small objects, of which there may be several per page. It adds refcounting so pages are only munlocked when the last object on that page munlocks.