threads.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 #ifndef _LIBCLUTTERMM_THREADS_H
00003 #define _LIBCLUTTERMM_THREADS_H
00004 /*
00005  * Copyright 2008 Jonathon Jongsma
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Library General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2 of the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Library General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Library General Public
00018  * License along with this library; if not, write to the Free
00019  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00020  */
00021 
00022 #include <glibmm.h>
00023 
00024 namespace Clutter
00025 {
00026 
00027 // TODO: clutter_threads_set_lock_functions ()?
00028 
00037 void threads_init();
00038 
00041 void threads_enter();
00042 
00045 void threads_leave();
00046 
00047 // TODO: Should there be a SignalSomething class for these, so the
00048 // sigc::connection makes more semantical sense?
00049 
00064 sigc::connection threads_add_idle(const sigc::slot<bool>& callback, int priority = Glib::PRIORITY_DEFAULT_IDLE);
00065 
00087 sigc::connection threads_add_timeout(const sigc::slot<bool>& callback, guint interval, gint priority = Glib::PRIORITY_DEFAULT);
00088 
00112 sigc::connection threads_add_frame_source(const sigc::slot<bool>& callback, guint interval, gint priority = Glib::PRIORITY_DEFAULT);
00113 
00114 } //namespace Clutter
00115 
00116 #endif //_LIBCLUTTERMM_THREADS_H
00117 

Generated on Mon Sep 15 05:39:58 2008 for cluttermm by  doxygen 1.5.6