Applying Timed Operations to Non-Timed Functions
    1.
    发明申请
    Applying Timed Operations to Non-Timed Functions 有权
    将定时操作应用于非定时功能

    公开(公告)号:US20120324478A1

    公开(公告)日:2012-12-20

    申请号:US13595719

    申请日:2012-08-27

    IPC分类号: G06F9/46

    CPC分类号: G06F9/547

    摘要: For applying timed operations to non-timed functions, a computer causes the computer to discover, by parsing source code, a caller calling a function. The function does not perform timed operations. The computer further encapsulates the function in a timed method adapter and calls the timed method adapter in place of the function from the caller, passing the timed method adapter an object and an argument for the function. The computer further calls an invoke thread from the set invoker and returns from the set invoker to the timed method adapter. The computer waits for an execution result from the function at the timed method adapter, monitoring for an expiration of a timeout, and invokes the function from the invoke thread, passing the function the object and the argument.

    摘要翻译: 为了将定时操作应用于非定时功能,计算机使计算机通过解析源代码来发现调用函数的调用者。 该功能不执行定时操作。 计算机进一步将功能封装在定时方法适配器中,并调用定时方法适配器代替来自调用者的函数,将定时方法适配器传递给该函数的对象和参数。 计算机进一步从设置的调用者调用调用线程,并从设置的调用者返回到定时方法适配器。 计算机等待来自定时方法适配器的函数的执行结果,监视超时的到期,并从调用线程调用函数,传递函数对象和参数。

    Method, apparatus, and system for applying timed operations to non-timed functions
    2.
    发明授权
    Method, apparatus, and system for applying timed operations to non-timed functions 失效
    用于将定时操作应用于非定时功能的方法,装置和系统

    公开(公告)号:US08312474B2

    公开(公告)日:2012-11-13

    申请号:US12368102

    申请日:2009-02-09

    IPC分类号: G06F9/44 G06F9/46

    CPC分类号: G06F9/547

    摘要: An encapsulation module encapsulates a function in a timed method adapter. A caller calls the timed method adapter in place of the function. The timed method adapter calls a set invoker. The set invoker saves an argument, calls an invoke thread, and returns to the timed method adapter. The invoke thread invokes the function and passes the function an object and the argument. The timed method adapter further waits for an execution result from the function and monitors for an expiration of a timeout. If the function returns the execution result before expiration of the timeout, the timed method adapter returns the execution result to the caller. If the timeout expires before the function returns the execution result, the timed method adapter directs the invoke thread to cancel the function and returns a timeout exception to the caller.

    摘要翻译: 封装模块将功能封装在定时方法适配器中。 来电者呼叫定时方法适配器代替该功能。 定时方法适配器调用set invoker。 set invoker保存一个参数,调用一个调用线程,并返回到定时方法适配器。 调用线程调用该函数并传递函数一个对象和参数。 定时方法适配器进一步等待来自该功能的执行结果并监视超时的到期。 如果该函数在超时到期之前返回执行结果,则定时方法适配器将执行结果返回给调用者。 如果超时在函数返回执行结果之前超时,则定时方法适配器会引导调用线程取消该函数,并向调用者返回超时异常。

    Method, Apparatus, and System for Applying Timed Operations to Non-Timed Functions
    3.
    发明申请
    Method, Apparatus, and System for Applying Timed Operations to Non-Timed Functions 失效
    将定时操作应用于非定时功能的方法,装置和系统

    公开(公告)号:US20100205613A1

    公开(公告)日:2010-08-12

    申请号:US12368102

    申请日:2009-02-09

    IPC分类号: G06F9/46

    CPC分类号: G06F9/547

    摘要: An encapsulation module encapsulates a function in a timed method adapter. A caller calls the timed method adapter in place of the function. The timed method adapter calls a set invoker. The set invoker saves an argument, calls an invoke thread, and returns to the timed method adapter. The invoke thread invokes the function and passes the function an object and the argument. The timed method adapter further waits for an execution result from the function and monitors for an expiration of a timeout. If the function returns the execution result before expiration of the timeout, the timed method adapter returns the execution result to the caller. If the timeout expires before the function returns the execution result, the timed method adapter directs the invoke thread to cancel the function and returns a timeout exception to the caller.

    摘要翻译: 封装模块将功能封装在定时方法适配器中。 来电者呼叫定时方法适配器代替该功能。 定时方法适配器调用set invoker。 set invoker保存一个参数,调用一个调用线程,并返回到定时方法适配器。 调用线程调用该函数并传递函数一个对象和参数。 定时方法适配器进一步等待来自该功能的执行结果并监视超时的到期。 如果该函数在超时到期之前返回执行结果,则定时方法适配器将执行结果返回给调用者。 如果超时在函数返回执行结果之前超时,则定时方法适配器会引导调用线程取消该函数,并向调用者返回超时异常。