mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-24 01:14:12 +08:00
90613f5039
update to ITHVNR 3.5640.1 and translation
35 lines
679 B
C++
35 lines
679 B
C++
#pragma once
|
|
|
|
// windbg/util.h
|
|
// 1/27/2013 jichi
|
|
|
|
#include "windbg/windbg.h"
|
|
#include "sakurakit/skglobal.h"
|
|
|
|
#include <windows.h>
|
|
|
|
WINDBG_BEGIN_NAMESPACE
|
|
|
|
class ThreadsSuspenderPrivate;
|
|
/**
|
|
* When created, automatically suspends all threads in the current process.
|
|
* When destroyed, resume suspended threads.
|
|
*/
|
|
class ThreadsSuspender
|
|
{
|
|
SK_CLASS(ThreadsSuspender)
|
|
SK_DISABLE_COPY(ThreadsSuspender)
|
|
SK_DECLARE_PRIVATE(ThreadsSuspenderPrivate)
|
|
|
|
public:
|
|
explicit ThreadsSuspender(bool autoSuspend = true);
|
|
~ThreadsSuspender();
|
|
|
|
void resume(); ///< Manually resume all threads
|
|
void suspend(); ///< Manually suspend all threads
|
|
};
|
|
|
|
WINDBG_END_NAMESPACE
|
|
|
|
// EOF
|