summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Linux/ThreadStateCoordinator.cpp
blob: 40bcebe684753d790e6c52f631631cd13b11ba7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//===-- ThreadStateCoordinator.cpp ------------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include "ThreadStateCoordinator.h"

using namespace lldb_private;

ThreadStateCoordinator::ThreadStateCoordinator (const LogFunc &log_func) :
    m_done_b (false),
    m_log_func (log_func)
{
}

void
ThreadStateCoordinator::CallAfterThreadsStop (const lldb::tid_t triggering_tid,
                                              const ThreadIDSet &wait_for_stop_tids,
                                              const ThreadIDFunc &request_thread_stop_func,
                                              const ThreadIDFunc &call_after_func)
{
}

void
ThreadStateCoordinator::StopCoordinator ()
{
    m_done_b = true;
}

bool
ThreadStateCoordinator::ProcessNextEvent ()
{
    return !m_done_b;
}
OpenPOWER on IntegriCloud