ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/urxvt.pm
(Generate patch)

Comparing rxvt-unicode/src/urxvt.pm (file contents):
Revision 1.149 by root, Sun Dec 3 23:03:52 2006 UTC vs.
Revision 1.151 by root, Thu Dec 14 17:22:04 2006 UTC

1110sub DESTROY { 1110sub DESTROY {
1111 $_[0][1]->stop; 1111 $_[0][1]->stop;
1112} 1112}
1113 1113
1114sub condvar { 1114sub condvar {
1115 bless \my $flag, urxvt::anyevent::condvar:: 1115 bless \my $flag, urxvt::anyevent::
1116} 1116}
1117 1117
1118sub urxvt::anyevent::condvar::broadcast { 1118sub broadcast {
1119 ${$_[0]}++; 1119 ${$_[0]}++;
1120} 1120}
1121 1121
1122sub urxvt::anyevent::condvar::wait { 1122sub wait {
1123 unless (${$_[0]}) { 1123 unless (${$_[0]}) {
1124 Carp::croak "AnyEvent->condvar blocking wait unsupported in urxvt, use a non-blocking API"; 1124 Carp::croak "AnyEvent->condvar blocking wait unsupported in urxvt, use a non-blocking API";
1125 } 1125 }
1126} 1126}
1127 1127
1128sub urxvt::anyevent::one_event { 1128sub one_event {
1129 Carp::croak "AnyEvent->one_event blocking wait unsupported in urxvt, use a non-blocking API"; 1129 Carp::croak "AnyEvent->one_event blocking wait unsupported in urxvt, use a non-blocking API";
1130} 1130}
1131 1131
1132package urxvt::term; 1132package urxvt::term;
1133 1133
1954 1954
1955=cut 1955=cut
1956 1956
1957package urxvt::watcher; 1957package urxvt::watcher;
1958 1958
1959@urxvt::timer::ISA = __PACKAGE__;
1960@urxvt::iow::ISA = __PACKAGE__;
1961@urxvt::pw::ISA = __PACKAGE__;
1962@urxvt::iw::ISA = __PACKAGE__;
1963
1964=head2 The C<urxvt::timer> Class 1959=head2 The C<urxvt::timer> Class
1965 1960
1966This class implements timer watchers/events. Time is represented as a 1961This class implements timer watchers/events. Time is represented as a
1967fractional number of seconds since the epoch. Example: 1962fractional number of seconds since the epoch. Example:
1968 1963

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines