stlab.adobe.com Adobe Systems Incorporated

platform_periodical_data.hpp

Go to the documentation of this file.
00001 /*
00002     Copyright 2005-2007 Adobe Systems Incorporated
00003     Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
00004     or a copy at http://stlab.adobe.com/licenses.html)
00005 */
00006 
00007 /****************************************************************************************************/
00008 
00009 #ifndef ADOBE_PLATFORM_PERIODICAL_DATA_HPP
00010 #define ADOBE_PLATFORM_PERIODICAL_DATA_HPP
00011 
00012 /****************************************************************************************************/
00013 
00014 #include <adobe/macintosh_carbon_safe.hpp>
00015 #include <adobe/macintosh_memory.hpp>
00016 
00017 #include <boost/function.hpp>
00018 
00019 /****************************************************************************************************/
00020 
00021 namespace adobe {
00022 
00023 /****************************************************************************************************/
00024 
00025 struct periodical_platform_data_t
00026 {
00027     typedef boost::function<void ()> fire_proc_t;
00028 
00029     periodical_platform_data_t(const fire_proc_t& fire_proc, std::size_t millisecond_delay);
00030 
00031     ~periodical_platform_data_t();
00032 
00033     auto_resource< ::EventLoopTimerUPP > timer_upp_ref_m;
00034     auto_resource< ::EventLoopTimerRef > timer_ref_m;
00035     fire_proc_t                          fire_m;
00036 };
00037 
00038 /****************************************************************************************************/
00039 
00040 } // namespace adobe
00041 
00042 /****************************************************************************************************/
00043 
00044 // ADOBE_PLATFORM_PERIODICAL_DATA_HPP
00045 #endif
00046 
00047 /****************************************************************************************************/

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google