diff options
| author | fukachan <fukachan> | 2002-08-07 03:59:18 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2002-08-07 03:59:18 +0000 |
| commit | 65a460ce29e64cd0f54e153de5b500abbcbfac64 (patch) | |
| tree | 190633dc156267bf71a463e046f7c9eff77454fb /fml/lib/FML/Process/Utils.pm | |
| parent | 3908dde88bb9145859cdf9d04b8dcba02e5878d6 (diff) | |
| download | fml8-65a460ce29e64cd0f54e153de5b500abbcbfac64.tar.gz fml8-65a460ce29e64cd0f54e153de5b500abbcbfac64.tar.bz2 fml8-65a460ce29e64cd0f54e153de5b500abbcbfac64.zip | |
define $curproc->{ scheduler } not _scheduler
define access method scheduler(). please use it e.g. $curproc->scheduler().
Diffstat (limited to 'fml/lib/FML/Process/Utils.pm')
| -rw-r--r-- | fml/lib/FML/Process/Utils.pm | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/fml/lib/FML/Process/Utils.pm b/fml/lib/FML/Process/Utils.pm index 59d25e3b..190b9dd1 100644 --- a/fml/lib/FML/Process/Utils.pm +++ b/fml/lib/FML/Process/Utils.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: Utils.pm,v 1.37 2002/07/23 13:16:44 fukachan Exp $ +# $FML: Utils.pm,v 1.38 2002/08/03 13:13:24 fukachan Exp $ # package FML::Process::Utils; @@ -63,6 +63,23 @@ sub pcb } +# Descriptions: return FML::Process::Scheduler object +# Arguments: OBJ($curproc) +# Side Effects: none +# Return Value: OBJ +sub scheduler +{ + my ($curproc) = @_; + + if (defined $curproc->{ scheduler }) { + return $curproc->{ scheduler }; + } + else { + return undef; + } +} + + =head1 access METHODS to handle incoming_message available all processes which eats message via STDIN. |
