~ubuntu-branches/ubuntu/saucy/zeromq3/saucy

« back to all changes in this revision

Viewing changes to src/lb.cpp

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2012-10-16 19:49:30 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20121016194930-98r0bi746eoaa4iv
Tags: 3.2.1~rc2+dfsg-1
* New upstream RC release (Closes: #690704)
* Bump Standards-Version to 3.9.4 (no changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
void zmq::lb_t::attach (pipe_t *pipe_)
42
42
{
43
43
    pipes.push_back (pipe_);
44
 
    pipes.swap (active, pipes.size () - 1);
45
 
    active++;
 
44
    activated (pipe_);
46
45
}
47
46
 
48
47
void zmq::lb_t::terminated (pipe_t *pipe_)
74
73
 
75
74
int zmq::lb_t::send (msg_t *msg_, int flags_)
76
75
{
 
76
    // flags_ is unused
 
77
    (void)flags_;
 
78
 
77
79
    //  Drop the message if required. If we are at the end of the message
78
80
    //  switch back to non-dropping mode.
79
81
    if (dropping) {