diff options
| author | 2019-03-26 15:12:09 -0400 | |
|---|---|---|
| committer | 2019-03-26 17:02:42 -0400 | |
| commit | 758d84db9adf6d4cf72de4c76059f8ab18fd4584 (patch) | |
| tree | 2a00601a1fa0c18fb363d46bc5d0826ca9e20c60 /src/core/gdbstub/gdbstub.cpp | |
| parent | service/am: Sort ISelfController's member functions according to table order (diff) | |
| download | yuzu-758d84db9adf6d4cf72de4c76059f8ab18fd4584.tar.gz yuzu-758d84db9adf6d4cf72de4c76059f8ab18fd4584.tar.xz yuzu-758d84db9adf6d4cf72de4c76059f8ab18fd4584.zip | |
service/am: Implement EnterFatalSection and LeaveFatalSection
These functions act in tandem similar to how a lock or mutex require a
balanced lock()/unlock() sequence.
EnterFatalSection simply increments a counter for how many times it has
been called, while LeaveFatalSection ensures that a previous call to
EnterFatalSection has occured. If a previous call has occurred (the
counter is not zero), then the counter gets decremented as one would
expect. If a previous call has not occurred (the counter is zero), then
an error code is returned.
Diffstat (limited to 'src/core/gdbstub/gdbstub.cpp')
0 files changed, 0 insertions, 0 deletions