dynamorio::drmemtrace::scheduler_tmpl_t< RecordType, ReaderType >::input_reader_t Struct Reference

#include <scheduler.h>

Public Member Functions

 input_reader_t ()=default
 
 input_reader_t (std::unique_ptr< ReaderType > reader, std::unique_ptr< ReaderType > end, memref_tid_t tid)
 

Data Fields

std::unique_ptr< ReaderType > reader
 
std::unique_ptr< ReaderType > end
 
memref_tid_t tid = INVALID_THREAD_ID
 

Detailed Description

template<typename RecordType, typename ReaderType>
struct dynamorio::drmemtrace::scheduler_tmpl_t< RecordType, ReaderType >::input_reader_t

Specifies an input that is already opened by a reader.

Constructor & Destructor Documentation

◆ input_reader_t() [1/2]

template<typename RecordType , typename ReaderType >
dynamorio::drmemtrace::scheduler_tmpl_t< RecordType, ReaderType >::input_reader_t::input_reader_t ( )
default

Creates an empty reader.

◆ input_reader_t() [2/2]

template<typename RecordType , typename ReaderType >
dynamorio::drmemtrace::scheduler_tmpl_t< RecordType, ReaderType >::input_reader_t::input_reader_t ( std::unique_ptr< ReaderType >  reader,
std::unique_ptr< ReaderType >  end,
memref_tid_t  tid 
)
inline

Creates a reader entry.

Field Documentation

◆ end

template<typename RecordType , typename ReaderType >
std::unique_ptr<ReaderType> dynamorio::drmemtrace::scheduler_tmpl_t< RecordType, ReaderType >::input_reader_t::end

The end reader for 'reader'.

◆ reader

template<typename RecordType , typename ReaderType >
std::unique_ptr<ReaderType> dynamorio::drmemtrace::scheduler_tmpl_t< RecordType, ReaderType >::input_reader_t::reader

The reader for the input stream.

◆ tid

template<typename RecordType , typename ReaderType >
memref_tid_t dynamorio::drmemtrace::scheduler_tmpl_t< RecordType, ReaderType >::input_reader_t::tid = INVALID_THREAD_ID

A unique identifier to distinguish from other readers for this workload. Typically this will be the thread id but it does not need to be, so long as it is not 0 (DynamoRIO's INVALID_THREAD_ID sentinel). This allows the 'thread_modifiers' field of 'input_workload_t' to refer to this input.


The documentation for this struct was generated from the following file:
  • /home/runner/work/dynamorio/dynamorio/build_release-64/clients/include/drmemtrace/scheduler.h