OpenCores
URL https://opencores.org/ocsvn/riscv_vhdl/riscv_vhdl/trunk

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [common/] [coreservices/] [ithread.h] - Diff between revs 2 and 4

Show entire file | Details | Blame | View Log

Rev 2 Rev 4
Line 6... Line 6...
 */
 */
 
 
#ifndef __DEBUGGER_ITHREAD_H__
#ifndef __DEBUGGER_ITHREAD_H__
#define __DEBUGGER_ITHREAD_H__
#define __DEBUGGER_ITHREAD_H__
 
 
#include "iface.h"
#include <iface.h>
#include "api_core.h"
#include <api_core.h>
 
 
namespace debugger {
namespace debugger {
 
 
static const char *const IFACE_THREAD = "IThread";
static const char *const IFACE_THREAD = "IThread";
 
 
Line 46... Line 46...
    }
    }
 
 
    /** check thread status */
    /** check thread status */
    virtual bool isEnabled() { return loopEnable_.state; }
    virtual bool isEnabled() { return loopEnable_.state; }
 
 
 
    /** Pass data from the parent thread */
 
    virtual void setExtArgument(void *args) {}
 
 
protected:
protected:
    /** working cycle function */
    /** working cycle function */
    virtual void busyLoop() =0;
    virtual void busyLoop() =0;
 
 
    static void runThread(void *arg) {
    static void runThread(void *arg) {

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.