ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/cf.pm
(Generate patch)

Comparing deliantra/server/lib/cf.pm (file contents):
Revision 1.620 by root, Tue Aug 11 02:13:26 2015 UTC vs.
Revision 1.621 by root, Fri Nov 18 20:55:00 2016 UTC

225=item $cf::RUNTIME 225=item $cf::RUNTIME
226 226
227The time this server has run, starts at 0 and is increased by $cf::TICK on 227The time this server has run, starts at 0 and is increased by $cf::TICK on
228every server tick. 228every server tick.
229 229
230=item $cf::CONFDIR $cf::DATADIR $cf::LIBDIR $cf::PODDIR 230=item $cf::CONFDIR $cf::DATADIR $cf::LIBDIR $cf::PODDIR
231$cf::MAPDIR $cf::LOCALDIR $cf::TMPDIR $cf::UNIQUEDIR 231$cf::MAPDIR $cf::LOCALDIR $cf::TMPDIR $cf::UNIQUEDIR
232$cf::PLAYERDIR $cf::RANDOMDIR $cf::BDBDIR 232$cf::PLAYERDIR $cf::RANDOMDIR $cf::BDBDIR
233 233
234Various directories - "/etc", read-only install directory, perl-library 234Various directories - "/etc", read-only install directory, perl-library
235directory, pod-directory, read-only maps directory, "/var", "/var/tmp", 235directory, pod-directory, read-only maps directory, "/var", "/var/tmp",
510 } 510 }
511} 511}
512 512
513=item cf::lock_wait $string 513=item cf::lock_wait $string
514 514
515Wait until the given lock is available. See cf::lock_acquire. 515Wait until the given lock is available. See cf::lock_acquire.
516 516
517=item my $lock = cf::lock_acquire $string 517=item my $lock = cf::lock_acquire $string
518 518
519Wait until the given lock is available and then acquires it and returns 519Wait until the given lock is available and then acquires it and returns
520a L<Guard> object. If the guard object gets destroyed (goes out of scope, 520a L<Guard> object. If the guard object gets destroyed (goes out of scope,
649BEGIN { *async = \&Coro::async_pool } 649BEGIN { *async = \&Coro::async_pool }
650 650
651=item cf::sync_job { BLOCK } 651=item cf::sync_job { BLOCK }
652 652
653The design of Deliantra requires that the main coroutine ($Coro::main) 653The design of Deliantra requires that the main coroutine ($Coro::main)
654is always able to handle events or runnable, as Deliantra is only 654is always able to handle events or is runnable, as Deliantra is only
655partly reentrant. Thus "blocking" it by e.g. waiting for I/O is not 655partly reentrant. Thus "blocking" it by e.g. waiting for I/O is not
656acceptable. 656acceptable.
657 657
658If it must be done, put the blocking parts into C<sync_job>. This will run 658If it must be done, put the blocking parts into C<sync_job>. This will run
659the given BLOCK in another coroutine while waiting for the result. The 659the given BLOCK in another coroutine while waiting for the result. The

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines