epoll.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 #
00003 # Copyright 2012 Facebook
00004 #
00005 # Licensed under the Apache License, Version 2.0 (the "License"); you may
00006 # not use this file except in compliance with the License. You may obtain
00007 # a copy of the License at
00008 #
00009 #     http://www.apache.org/licenses/LICENSE-2.0
00010 #
00011 # Unless required by applicable law or agreed to in writing, software
00012 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
00013 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
00014 # License for the specific language governing permissions and limitations
00015 # under the License.
00016 """EPoll-based IOLoop implementation for Linux systems."""
00017 from __future__ import absolute_import, division, print_function, with_statement
00018 
00019 import select
00020 
00021 from tornado.ioloop import PollIOLoop
00022 
00023 
00024 class EPollIOLoop(PollIOLoop):
00025     def initialize(self, **kwargs):
00026         super(EPollIOLoop, self).initialize(impl=select.epoll(), **kwargs)


rosbridge_tools
Author(s): Jonathan Mace
autogenerated on Sat Dec 27 2014 11:25:59