[Return to Top] [Standard Processes]

EROS Object Reference

Standard Processes

MetaConstructor

D R A F T

Description

The MetaConstructor is the originator of new Factory objects. Factories provide the basic program construction service of the EROS system.

The newly fabricated factory is created in the build state (see the factory concept and Factory pages). The initial state of the newly created factory contain:

    ItemValue
    KR3A factory copy key to the newly created factory.
    start addressThe initial PC of the factory product (initially 0).

Operations

Check Alleged Key Type (OC = KT)

Returns the alleged type of the object.
ReplyR1AKT_MetaConstructor: Key is a metaconstructor key.

Create a Factory (OC = 1)

Creates a new factory in the initial state described above, and returns a builder's key to the factory. The process creator of this factory is a newly created process creator.
RequestSK0A prompt space bank.
ReplyRK0A builder's key to the new factory.
ResultRC_OKOperation completed successfully.
RC_NoMoreNodesSpace bank ran out of nodes while creating new factory. All successfully allocated nodes and pages have been returned to the space bank. RK0 is a void key.
RC_NoMorePagesSpace bank ran out of pages while creating new factory. All successfully allocated nodes and pages have been returned to the space bank. RK0 is a void key.

Get Fetcher Key (OC = 8)

Creates a new factoryin the initial state described above, and returns a builder's key to the factory. The process creator of this factory is a newly created process creator.
RequestSK0A requestor's key to a factory created by this factory creator.
ReplyRK0A fetcher key to the factory designated by SK0.
Result0Mutex ownership granted.


Copyright 1998, 2001 by Jonathan Shapiro. All rights reserved. For terms of redistribution, see the GNU General Public License