~ubuntu-branches/ubuntu/wily/ruby-passenger/wily-proposed

« back to all changes in this revision

Viewing changes to ext/common/MessageServer.h

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2013-11-23 23:50:02 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20131123235002-8fdhsq7afj15o2z2
Tags: 4.0.25-1
* New upstream release.
* Refresh fix_install_path.patch.
* Build for Ruby 2.0 instead of 1.8. (Closes: #725591)
* Add fix_ftbfs_fortify_source.patch.
* Install passenger template files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
 *       };
128
128
 *       
129
129
 *       MessageServer::ClientContextPtr newClient(MessageServer::CommonClientContext &commonContext) {
130
 
 *           return make_shared<MyContext>();
 
130
 *           return boost::make_shared<MyContext>();
131
131
 *       }
132
132
 *       
133
133
 *       bool processMessage(MessageServer::CommonClientContext &commonContext,
165
165
                virtual ~ClientContext() { }
166
166
        };
167
167
        
168
 
        typedef shared_ptr<ClientContext> ClientContextPtr;
 
168
        typedef boost::shared_ptr<ClientContext> ClientContextPtr;
169
169
        
170
170
        /**
171
171
         * A common client context, containing client-specific information
295
295
                                            const vector<string> &args) = 0;
296
296
        };
297
297
        
298
 
        typedef shared_ptr<Handler> HandlerPtr;
 
298
        typedef boost::shared_ptr<Handler> HandlerPtr;
299
299
        
300
300
protected:
301
301
        /** The filename of the server socket on which this MessageServer is listening. */
565
565
                        this_thread::disable_interruption di;
566
566
                        this_thread::disable_syscall_interruption dsi;
567
567
                        
568
 
                        function<void ()> func(boost::bind(&MessageServer::clientHandlingMainLoop,
 
568
                        boost::function<void ()> func(boost::bind(&MessageServer::clientHandlingMainLoop,
569
569
                                this, fd));
570
570
                        string name = "MessageServer client thread ";
571
571
                        name.append(toString(fd));
595
595
        }
596
596
};
597
597
 
598
 
typedef shared_ptr<MessageServer> MessageServerPtr;
 
598
typedef boost::shared_ptr<MessageServer> MessageServerPtr;
599
599
 
600
600
} // namespace Passenger
601
601