mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-14 02:26:39 +01:00
upgrade to glibmm 2.16
git-svn-id: svn://localhost/ardour2/branches/3.0@5303 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
5b97b13766
commit
e916ac2821
211 changed files with 26478 additions and 4168 deletions
|
|
@ -9,22 +9,22 @@
|
|||
/* Copyright (C) 2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
|
||||
#include <glib/gthread.h>
|
||||
#include <glib.h>
|
||||
#include <cstddef>
|
||||
|
||||
#include <sigc++/sigc++.h>
|
||||
|
|
@ -215,6 +215,7 @@ class Thread
|
|||
public:
|
||||
class Exit;
|
||||
|
||||
//See http://bugzilla.gnome.org/show_bug.cgi?id=512348 about the sigc::trackable issue.
|
||||
/** Creates a new thread with the priority <tt>THREAD_PRIORITY_NORMAL</tt>.
|
||||
* If @a joinable is @c true, you can wait for this thread's termination by
|
||||
* calling join(). Otherwise the thread will just disappear, when ready.
|
||||
|
|
@ -223,6 +224,10 @@ public:
|
|||
* pass additional arguments using sigc::bind(). If the thread was created
|
||||
* successfully, it is returned, otherwise a ThreadError exception is thrown.
|
||||
*
|
||||
* Because sigc::trackable is not thread safe, if the slot represents a
|
||||
* non-static class method (that is, it is created by sigc::mem_fun()), the
|
||||
* class concerned should not derive from sigc::trackable.
|
||||
*
|
||||
* @param slot A slot to execute in the new thread.
|
||||
* @param joinable Should this thread be joinable?
|
||||
* @return The new Thread* on success.
|
||||
|
|
@ -230,6 +235,7 @@ public:
|
|||
*/
|
||||
static Thread* create(const sigc::slot<void>& slot, bool joinable);
|
||||
|
||||
//See http://bugzilla.gnome.org/show_bug.cgi?id=512348 about the sigc::trackable issue.
|
||||
/** Creates a new thread with the priority @a priority. The stack gets the
|
||||
* size @a stack_size or the default value for the current platform, if
|
||||
* @a stack_size is <tt>0</tt>.
|
||||
|
|
@ -245,6 +251,10 @@ public:
|
|||
* pass additional arguments using sigc::bind(). If the thread was created
|
||||
* successfully, it is returned.
|
||||
*
|
||||
* Because sigc::trackable is not thread safe, if the slot represents a
|
||||
* non-static class method (that is, it is created by sigc::mem_fun()), the
|
||||
* class concerned should not derive from sigc::trackable.
|
||||
*
|
||||
* @note It is not guaranteed, that threads with different priorities really
|
||||
* behave accordingly. On some systems (e.g. Linux) only root can increase
|
||||
* priorities. On other systems (e.g. Solaris) there doesn't seem to be
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue