summaryrefslogtreecommitdiff
path: root/tools/lldb-mi/MIUtilThreadBaseStd.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lldb-mi/MIUtilThreadBaseStd.h')
-rw-r--r--tools/lldb-mi/MIUtilThreadBaseStd.h59
1 files changed, 22 insertions, 37 deletions
diff --git a/tools/lldb-mi/MIUtilThreadBaseStd.h b/tools/lldb-mi/MIUtilThreadBaseStd.h
index 504d8303de1d8..738f295b657ab 100644
--- a/tools/lldb-mi/MIUtilThreadBaseStd.h
+++ b/tools/lldb-mi/MIUtilThreadBaseStd.h
@@ -6,9 +6,6 @@
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
-//
-// Copyright: None.
-//--
#pragma once
@@ -26,27 +23,24 @@
//++ ============================================================================
// Details: MI common code utility class. Handle thread mutual exclusion.
// Embed Mutexes in your Active Object and then use them through Locks.
-// Gotchas: None.
-// Authors: Aidan Dodds 10/03/2014.
-// Changes: None.
//--
class CMIUtilThreadMutex
{
// Methods:
public:
- /* ctor */ CMIUtilThreadMutex(void){};
+ /* ctor */ CMIUtilThreadMutex(){}
//
void
- Lock(void); // Wait until mutex can be obtained
+ Lock(); // Wait until mutex can be obtained
void
- Unlock(void); // Release the mutex
+ Unlock(); // Release the mutex
bool
- TryLock(void); // Gain the lock if available
+ TryLock(); // Gain the lock if available
// Overrideable:
public:
// From CMICmnBase
- /* dtor */ virtual ~CMIUtilThreadMutex(void){};
+ /* dtor */ virtual ~CMIUtilThreadMutex(){}
// Attributes:
private:
@@ -55,9 +49,6 @@ class CMIUtilThreadMutex
//++ ============================================================================
// Details: MI common code utility class. Thread object.
-// Gotchas: None.
-// Authors: Aidan Dodds 10/03/2014.
-// Changes: None.
//--
class CMIUtilThread
{
@@ -67,20 +58,20 @@ class CMIUtilThread
// Methods:
public:
- /* ctor */ CMIUtilThread(void);
+ /* ctor */ CMIUtilThread();
//
bool
Start(FnThreadProc vpFn, void *vpArg); // Start execution of this thread
bool
- Join(void); // Wait for this thread to stop
+ Join(); // Wait for this thread to stop
bool
- IsActive(void); // Returns true if this thread is running
+ IsActive(); // Returns true if this thread is running
void
- Finish(void); // Finish this thread
+ Finish(); // Finish this thread
// Overrideable:
public:
- /* dtor */ virtual ~CMIUtilThread(void);
+ /* dtor */ virtual ~CMIUtilThread();
// Methods:
private:
@@ -92,36 +83,33 @@ class CMIUtilThread
//++ ============================================================================
// Details: MI common code utility class. Base class for a worker thread active
// object. Runs an 'captive thread'.
-// Gotchas: None.
-// Authors: Aidan Dodds 10/03/2014..
-// Changes: None.
//--
class CMIUtilThreadActiveObjBase
{
// Methods:
public:
- /* ctor */ CMIUtilThreadActiveObjBase(void);
+ /* ctor */ CMIUtilThreadActiveObjBase();
//
bool
- Acquire(void); // Obtain a reference to this object
+ Acquire(); // Obtain a reference to this object
bool
- Release(void); // Release a reference to this object
+ Release(); // Release a reference to this object
bool
- ThreadIsActive(void); // Return true if this object is running
+ ThreadIsActive(); // Return true if this object is running
bool
- ThreadJoin(void); // Wait for this thread to stop running
+ ThreadJoin(); // Wait for this thread to stop running
bool
- ThreadKill(void); // Force this thread to stop, regardless of references
+ ThreadKill(); // Force this thread to stop, regardless of references
bool
- ThreadExecute(void); // Start this objects execution in another thread
- void ThreadManage(void);
+ ThreadExecute(); // Start this objects execution in another thread
+ void ThreadManage();
// Overrideable:
public:
- /* dtor */ virtual ~CMIUtilThreadActiveObjBase(void);
+ /* dtor */ virtual ~CMIUtilThreadActiveObjBase();
//
// Each thread object must supple a unique name that can be used to locate it
- virtual const CMIUtilString &ThreadGetName(void) const = 0;
+ virtual const CMIUtilString &ThreadGetName() const = 0;
// Statics:
protected:
@@ -133,7 +121,7 @@ class CMIUtilThreadActiveObjBase
virtual bool
ThreadRun(bool &vrIsAlive) = 0; // Call the main worker method
virtual bool
- ThreadFinish(void) = 0; // Finish of what you were doing
+ ThreadFinish() = 0; // Finish of what you were doing
// Attributes:
protected:
@@ -148,9 +136,6 @@ class CMIUtilThreadActiveObjBase
// Details: MI common code utility class. Handle thread resource locking.
// Put Locks inside all the methods of your Active Object that access
// data shared with the captive thread.
-// Gotchas: None.
-// Authors: Aidan Dodds 10/03/2014.
-// Changes: None.
//--
class CMIUtilThreadLock
{
@@ -166,7 +151,7 @@ class CMIUtilThreadLock
// Overrideable:
public:
/* dtor */
- virtual ~CMIUtilThreadLock(void) { m_rMutex.Unlock(); }
+ virtual ~CMIUtilThreadLock() { m_rMutex.Unlock(); }
// Attributes:
private: