2581 "Created: / 15.7.1998 / 13:32:29 / cg" |
2581 "Created: / 15.7.1998 / 13:32:29 / cg" |
2582 ! ! |
2582 ! ! |
2583 |
2583 |
2584 !ProcessorScheduler methodsFor:'timeout handling'! |
2584 !ProcessorScheduler methodsFor:'timeout handling'! |
2585 |
2585 |
|
2586 addTimedBlock:aBlock after:timeDuration |
|
2587 "add the argument, aBlock to the list of time-scheduled-blocks; to be |
|
2588 evaluated after timeDuration. The process which installs this timed |
|
2589 block will be interrupted for execution of the block. |
|
2590 (if it is running, the interrupt will occur in whatever method it is |
|
2591 executing; if it is suspended, it will be resumed). |
|
2592 The block will be removed from the timed-block list after evaluation |
|
2593 (i.e. it will trigger only once). |
|
2594 Returns an ID, which can be used in #removeTimeoutWidthID:" |
|
2595 |
|
2596 ^ self addTimedBlock:aBlock for:activeProcess afterMilliseconds:timeDuration getMilliseconds |
|
2597 ! |
|
2598 |
2586 addTimedBlock:aBlock afterMilliseconds:delta |
2599 addTimedBlock:aBlock afterMilliseconds:delta |
2587 "add the argument, aBlock to the list of time-scheduled-blocks; to be |
2600 "add the argument, aBlock to the list of time-scheduled-blocks; to be |
2588 evaluated after delta milliseconds. The process which installs this timed |
2601 evaluated after delta milliseconds. The process which installs this timed |
2589 block will be interrupted for execution of the block. |
2602 block will be interrupted for execution of the block. |
2590 (if it is running, the interrupt will occur in whatever method it is |
2603 (if it is running, the interrupt will occur in whatever method it is |
2625 Returns an ID, which can be used in #removeTimeoutWidthID:" |
2638 Returns an ID, which can be used in #removeTimeoutWidthID:" |
2626 |
2639 |
2627 ^ self addTimedBlock:aBlock for:activeProcess atMilliseconds:aMillisecondTime |
2640 ^ self addTimedBlock:aBlock for:activeProcess atMilliseconds:aMillisecondTime |
2628 |
2641 |
2629 "Modified: 23.9.1996 / 14:34:09 / cg" |
2642 "Modified: 23.9.1996 / 14:34:09 / cg" |
|
2643 ! |
|
2644 |
|
2645 addTimedBlock:aBlock for:aProcess after:timeDuration |
|
2646 "add the argument, aBlock to the list of time-scheduled-blocks. |
|
2647 to be evaluated after timeDuration. aProcess will be interrupted for |
|
2648 execution of the block. |
|
2649 (if it is running, the interrupt will occur in whatever method it is |
|
2650 executing; if it is suspended, it will be resumed). |
|
2651 If aProcess is nil, the block will be evaluated by the scheduler itself |
|
2652 (which is dangerous - the block should not raise any error conditions). |
|
2653 The block will be removed from the timed-block list after evaluation |
|
2654 (i.e. it will trigger only once). |
|
2655 Returns an ID, which can be used in #removeTimeoutWidthID:" |
|
2656 |
|
2657 ^ self addTimedBlock:aBlock for:aProcess afterMilliseconds:timeDuration getMilliseconds |
|
2658 |
|
2659 "Modified: 23.9.1996 / 14:34:18 / cg" |
2630 ! |
2660 ! |
2631 |
2661 |
2632 addTimedBlock:aBlock for:aProcess afterMilliseconds:delta |
2662 addTimedBlock:aBlock for:aProcess afterMilliseconds:delta |
2633 "add the argument, aBlock to the list of time-scheduled-blocks; to be |
2663 "add the argument, aBlock to the list of time-scheduled-blocks; to be |
2634 evaluated after delta milliseconds. The process specified by the argument, |
2664 evaluated after delta milliseconds. The process specified by the argument, |
3440 ! ! |
3470 ! ! |
3441 |
3471 |
3442 !ProcessorScheduler class methodsFor:'documentation'! |
3472 !ProcessorScheduler class methodsFor:'documentation'! |
3443 |
3473 |
3444 version |
3474 version |
3445 ^ '$Header: /cvs/stx/stx/libbasic/ProcessorScheduler.st,v 1.288 2014-05-16 06:57:39 stefan Exp $' |
3475 ^ '$Header: /cvs/stx/stx/libbasic/ProcessorScheduler.st,v 1.289 2014-05-28 08:53:48 stefan Exp $' |
3446 ! |
3476 ! |
3447 |
3477 |
3448 version_CVS |
3478 version_CVS |
3449 ^ '$Header: /cvs/stx/stx/libbasic/ProcessorScheduler.st,v 1.288 2014-05-16 06:57:39 stefan Exp $' |
3479 ^ '$Header: /cvs/stx/stx/libbasic/ProcessorScheduler.st,v 1.289 2014-05-28 08:53:48 stefan Exp $' |
3450 ! ! |
3480 ! ! |
3451 |
3481 |
3452 |
3482 |
3453 ProcessorScheduler initialize! |
3483 ProcessorScheduler initialize! |