Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 """Implementation of platform-specific functionality.
00018 
00019 For each function or class described in `tornado.platform.interface`,
00020 the appropriate platform-specific implementation exists in this module.
00021 Most code that needs access to this functionality should do e.g.::
00022 
00023     from tornado.platform.auto import set_close_exec
00024 """
00025 
00026 from __future__ import absolute_import, division, with_statement
00027 
00028 import os
00029 
00030 if os.name == 'nt':
00031     from tornado.platform.common import Waker
00032     from tornado.platform.windows import set_close_exec
00033 else:
00034     from tornado.platform.posix import set_close_exec, Waker