Front page | perl.cvs.parrot |
Postings from December 2008
[svn:parrot] r34287 - in trunk: . examples/io runtime/parrot/library/HTTP src/ops
From:
chromatic
Date:
December 23, 2008 13:02
Subject:
[svn:parrot] r34287 - in trunk: . examples/io runtime/parrot/library/HTTP src/ops
Message ID:
20081223210156.5EE46CBA12@x12.develooper.com
Author: chromatic
Date: Tue Dec 23 13:01:55 2008
New Revision: 34287
Modified:
trunk/DEPRECATED.pod
trunk/examples/io/async_select.pir
trunk/runtime/parrot/library/HTTP/Daemon.pir
trunk/src/ops/experimental.ops
Log:
[ops] Removed deprecated add_io_event opcode.
Modified: trunk/DEPRECATED.pod
==============================================================================
--- trunk/DEPRECATED.pod (original)
+++ trunk/DEPRECATED.pod Tue Dec 23 13:01:55 2008
@@ -66,11 +66,6 @@
implementation should be reconsidered. The current implementation will
be removed.
-=item * C<add_io_event> [post 0.8.2]
-
-The C<add_io_event> opcode is experimental and non-functional. The current
-implementation will be removed.
-
=back
=head1 Class Features
Modified: trunk/examples/io/async_select.pir
==============================================================================
--- trunk/examples/io/async_select.pir (original)
+++ trunk/examples/io/async_select.pir Tue Dec 23 13:01:55 2008
@@ -36,8 +36,9 @@
idles = '|/-\'
i = 0
spin:
+ # XXX: this opcode is long gone
# the IO event is inactive, after it fired, just reattach always
- add_io_event pio, handler, data, .IO_THR_MSG_ADD_SELECT_RD
+ # add_io_event pio, handler, data, .IO_THR_MSG_ADD_SELECT_RD
sleep 0.2
$S0 = idles[i]
inc i
Modified: trunk/runtime/parrot/library/HTTP/Daemon.pir
==============================================================================
--- trunk/runtime/parrot/library/HTTP/Daemon.pir (original)
+++ trunk/runtime/parrot/library/HTTP/Daemon.pir Tue Dec 23 13:01:55 2008
@@ -332,7 +332,8 @@
add_lp:
conn = active[i]
sock = conn.'socket'()
- add_io_event sock, req_handler, conn, .IO_THR_MSG_ADD_SELECT_RD
+ # XXX: this opcode is long gone; need something else
+ # add_io_event sock, req_handler, conn, .IO_THR_MSG_ADD_SELECT_RD
## self.'debug'('**select ', i, "\n")
inc i
if i < n goto add_lp
Modified: trunk/src/ops/experimental.ops
==============================================================================
--- trunk/src/ops/experimental.ops (original)
+++ trunk/src/ops/experimental.ops Tue Dec 23 13:01:55 2008
@@ -297,17 +297,6 @@
########################################
-=item B<add_io_event>(invar PMC, invar PMC, invar PMC, inconst INT)
-
-Call the sub $2 for PIO $1 with user data $3 on ready state of $4.
-RT#42376 The only handled $4 = IO_THR_MSG_ADD_SELECT_RD aka 2 for now.
-
-=cut
-
-op add_io_event(invar PMC, invar PMC, invar PMC, inconst INT) {
- Parrot_event_add_io_event(interp, $1, $2, $3, $4);
-}
-
=item B<need_finalize>(invar PMC)
The ParrotObject $1 needs the __finalize method during GC.
-
[svn:parrot] r34287 - in trunk: . examples/io runtime/parrot/library/HTTP src/ops
by chromatic