LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cvs-checkins > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: cvs at opencores.org<cvs@o...>
    Date: Mon Nov 13 16:25:37 CET 2006
    Subject: [cvs-checkins] MODIFIED: jop ...
    Top
    Date: 00/06/11 13:16:25

    Modified: jop/java/target/src/rtapi/safetycritical RtEvent.java
    RtSystem.java
    Log:
    no message


    Revision Changes Path
    1.2 jop/java/target/src/rtapi/safetycritical/RtEvent.java

    http://www.opencores.org/cvsweb.shtml/jop/java/target/src/rtapi/safetycritical/RtEvent.java.diff?r1=1.1&r2=1.2

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: RtEvent.java
    ===================================================================
    RCS file: /cvsroot/martin/jop/java/target/src/rtapi/safetycritical/RtEvent.java,v
    retrieving revision 1.1
    retrieving revision 1.2
    diff -u -b -r1.1 -r1.2
    --- RtEvent.java 13 Nov 2006 14:53:57 -0000 1.1
    +++ RtEvent.java 13 Nov 2006 15:25:36 -0000 1.2
    @@ -78,7 +78,7 @@
    /**
    * Gets invoked in the shutdown phase at the same period as
    * run (instead of run()). Invoked until return true.
    - * @return true is shutdown is finished.
    + * @return true if shutdown is finished.
    */
    protected boolean cleanup() {
    return true;



    1.2 jop/java/target/src/rtapi/safetycritical/RtSystem.java

    http://www.opencores.org/cvsweb.shtml/jop/java/target/src/rtapi/safetycritical/RtSystem.java.diff?r1=1.1&r2=1.2

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: RtSystem.java
    ===================================================================
    RCS file: /cvsroot/martin/jop/java/target/src/rtapi/safetycritical/RtSystem.java,v
    retrieving revision 1.1
    retrieving revision 1.2
    diff -u -b -r1.1 -r1.2
    --- RtSystem.java 13 Nov 2006 14:53:57 -0000 1.1
    +++ RtSystem.java 13 Nov 2006 15:25:37 -0000 1.2
    @@ -74,6 +74,23 @@
    }
    }
    }
    + /**
    + * Schedule a software event.
    + * TODO: decide on which version is better: String or RtEvent
    + * @param re
    + */
    + public static void fire(RtEvent re) {
    +
    + // a simple linear search :-(
    + // could be better if not using the adapter stuff
    + for (int i=0; i<rsaLst.size(); ++i) {
    + RtSwEventAdapter rsa = (RtSwEventAdapter) rsaLst.elementAt(i);
    + if (rsa.re==re) {
    + rsa.fire();
    + break;
    + }
    + }
    + }

    /**
    * Return the elapsed time from system startup in micro seconds.



     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.