com.tapina.robe.swi
Class SharedUnixLibrary
java.lang.Object
com.tapina.robe.runtime.Block
com.tapina.robe.runtime.DataBlock
com.tapina.robe.module.Module
com.tapina.robe.swi.SWIHandler
com.tapina.robe.swi.SharedUnixLibrary
- public class SharedUnixLibrary
- extends SWIHandler
Java implementation of Peter Naulls' module used by UnixLib programs.
From: http://www.drobe.co.uk/riscos/artifact1253.html
What is SharedUnixLibary?
I want to say very little about this, since it's been a huge cause of confusion for no good reason. Its singular,
and only purpose, is to catch a callback that RISC OS makes when an application quits. RISC OS helpfully insists on
calling this (for a variety of reasons) when the listening application might be paged out, thereby jumping to random
code and quickly causing your computer to freeze or crash some unrelated program. This code is therefore in a module
and only passes the message onto Unixlib when it is safe to do so. The issue has been fixed in Select/Adjust, but
Unixlib has not been modified to avoid this on machines running those versions of RISC OS.
NB: This is in no way similar in operation to SharedCLibrary.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static SharedUnixLibrary getInstance()
getBase
public static int getBase()
getMethod
public static java.lang.reflect.Method getMethod(java.lang.Integer offset)
throws java.lang.NoSuchMethodException
- Throws:
java.lang.NoSuchMethodException
RegisterUpCall
public void RegisterUpCall(Environment env)
DeRegisterUpCall
public void DeRegisterUpCall(Environment env)
SetValueCount
public void SetValueCount(Environment env)
Copyright © 2003-2005 . All Rights Reserved.