| Revision: | 1.3 |
| Committed: | Fri Nov 9 20:37:57 2012 UTC (13 years, 11 months ago) by root |
| Branch: | MAIN |
| CVS Tags: | rel-3_1, HEAD |
| Changes since 1.2: | +9 -6 lines |
| Log Message: | *** empty log message *** |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | root | 1.1 | #! perl # mandatory |
| 2 | |||
| 3 | # resource handling | ||
| 4 | |||
| 5 | root | 1.3 | cf::register_async_exticmd resource => sub { |
| 6 | my ($ns, $reply, @resnames) = @_; | ||
| 7 | root | 1.1 | |
| 8 | root | 1.3 | cf::async { |
| 9 | my $guard = cf::lock_acquire "ext::resource"; | ||
| 10 | root | 1.1 | |
| 11 | root | 1.3 | $ns->send_face ($_ = cf::face::find "res/$_") |
| 12 | for @resnames; | ||
| 13 | root | 1.1 | |
| 14 | root | 1.3 | $ns->flush_fx; |
| 15 | $reply->(@resnames); | ||
| 16 | }; | ||
| 17 | root | 1.1 | }; |
| 18 | root | 1.2 |