[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/rtmp r9680: add support for the [] operato
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/rtmp r9680: add support for the [] operator. |
Date: |
Sat, 01 Nov 2008 08:59:07 -0600 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9680
committer: address@hidden
branch nick: rtmp
timestamp: Sat 2008-11-01 08:59:07 -0600
message:
add support for the [] operator.
modified:
libnet/cque.h
=== modified file 'libnet/cque.h'
--- a/libnet/cque.h 2008-09-22 18:25:27 +0000
+++ b/libnet/cque.h 2008-11-01 14:59:07 +0000
@@ -70,6 +70,8 @@
// Merge sucessive buffers into one single larger buffer. This is for some
// protocols, than have very long headers.
boost::shared_ptr<amf::Buffer> merge(boost::shared_ptr<amf::Buffer> begin);
+
+ boost::shared_ptr<amf::Buffer> operator[] (int index) { return
_que[index]; };
// Dump the data to the terminal
void dump();
@@ -89,7 +91,7 @@
// This is the mutex used by the condition variable. It needs to be
separate from the
// one used to lock access to the que.
boost::mutex _cond_mutex;
- // This is the mutex that control access to the que.
+ // This is the mutex that controls access to the que.
boost::mutex _mutex;
#ifdef USE_STATS_QUEUE
que_stats_t _stats;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/rtmp r9680: add support for the [] operator.,
rob <=