shuttle.cpp 433 B

1234567891011121314151617181920
  1. #include "shuttle.h"
  2. #include "probes.h"
  3. #include <util/system/backtrace.h>
  4. #include <util/stream/str.h>
  5. namespace NLWTrace {
  6. LWTRACE_USING(LWTRACE_INTERNAL_PROVIDER);
  7. inline TString CurrentBackTrace() {
  8. TStringStream ss;
  9. FormatBackTrace(&ss);
  10. return ss.Str();
  11. }
  12. void TOrbit::LockFailed() {
  13. LWPROBE(OrbitIsUsedConcurrentlyError, CurrentBackTrace());
  14. }
  15. } // namespace NLWTrace