openMSX
Public Member Functions | Public Attributes | List of all members
openmsx::MSXMotherBoard::SharedStuff Struct Reference

Some MSX device parts are shared between several MSX devices (e.g. More...

#include <MSXMotherBoard.hh>

Public Member Functions

 SharedStuff ()
 

Public Attributes

void * stuff
 
unsigned counter
 

Detailed Description

Some MSX device parts are shared between several MSX devices (e.g.

all memory mappers share IO ports 0xFC-0xFF). But this sharing is limited to one MSX machine. This method offers the storage to implement per-machine reference counted objects. TODO This doesn't play nicely with savestates. For example memory mappers don't use this mechanism anymore because of this. Maybe this method can be removed when savestates are finished.

Definition at line 142 of file MSXMotherBoard.hh.

Constructor & Destructor Documentation

openmsx::MSXMotherBoard::SharedStuff::SharedStuff ( )
inline

Definition at line 143 of file MSXMotherBoard.hh.

Member Data Documentation

unsigned openmsx::MSXMotherBoard::SharedStuff::counter

Definition at line 145 of file MSXMotherBoard.hh.

void* openmsx::MSXMotherBoard::SharedStuff::stuff

Definition at line 144 of file MSXMotherBoard.hh.


The documentation for this struct was generated from the following file: