Add scope guard classes. Add Logger::RegisterThreadNoDramaCtx, UFACE...
Add scope guard classes. Add Logger::RegisterThreadNoDramaCtx, UFACE constructor will complain if in DRAMA message loop TUFace constructor will now throw if you are creating this within the thread running the DRAMA main loop - catches a partricular class of issues. Ticket ASI-162. Add drama::ScopeGuard class - a simple scope guard class which sets a value to a particular value when constructed and then resets it on exit. Also add the variation ScopeGuardAtomic for gaurding access to atomic types (a thread safe version) Added Logger::RegisterThreadNoDramaCtx(). When invoked for a thread which is really not a DRAMA thread, that thread can use the DRAMA logger in a well defined way. Does introduce a memory leak for each of these threads, but only that it is not tidied up when DRAMA exits. ACMM Version 1.112
Showing
- dmakefile 22 additions, 13 deletionsdmakefile
- drama/logger.hh 20 additions, 0 deletionsdrama/logger.hh
- drama/task.hh 6 additions, 2 deletionsdrama/task.hh
- drama/threaduface.hh 28 additions, 0 deletionsdrama/threaduface.hh
- drama/util.hh 163 additions, 0 deletionsdrama/util.hh
- drama2_err.msg 2 additions, 0 deletionsdrama2_err.msg
- examples/scopeguard_test.cpp 177 additions, 0 deletionsexamples/scopeguard_test.cpp
- examples/tockeract_withextrathread.cpp 167 additions, 0 deletionsexamples/tockeract_withextrathread.cpp
- logger.cpp 37 additions, 1 deletionlogger.cpp
- task.cpp 4 additions, 2 deletionstask.cpp
- test1.expected 3 additions, 0 deletionstest1.expected
- threaduface.cpp 47 additions, 1 deletionthreaduface.cpp
Loading
Please register or sign in to comment