summaryrefslogtreecommitdiff
path: root/src/core/gdbstub/gdbstub.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-03-26 15:12:09 -0400
committerLioncash <mathew1800@gmail.com>2019-03-26 17:02:42 -0400
commit758d84db9adf6d4cf72de4c76059f8ab18fd4584 (patch)
tree2a00601a1fa0c18fb363d46bc5d0826ca9e20c60 /src/core/gdbstub/gdbstub.cpp
parent96d518a59f72fdf67dd526cc9cd107f04a43d6e2 (diff)
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