David Robillard
b63a9fd4ca
Use shared_ptr::unique() instead of shared_ptr::use_count() == 1.
...
use_count() can be slow (not constant time) depending on underlying implementation.
Similar situation to std::list::size() == 0 an std::list::empty(), the former
does a big traversal/computation only to check if the very first step went.
I think the current boost implementation is just a reference count anyway, but
hey. In theory.
git-svn-id: svn://localhost/ardour2/branches/3.0@5996 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-11-01 17:25:38 +00:00
..
2009-04-30 16:47:51 +00:00
2008-06-02 21:41:35 +00:00
2009-11-01 17:25:38 +00:00
2009-06-03 16:50:46 +00:00
2008-06-02 21:41:35 +00:00
2009-02-25 18:26:51 +00:00
2009-02-25 18:26:51 +00:00
2008-06-02 21:41:35 +00:00
2009-02-25 18:26:51 +00:00
2009-10-21 00:15:42 +00:00
2009-05-18 00:21:17 +00:00
2008-06-02 21:41:35 +00:00
2008-06-02 21:41:35 +00:00
2009-02-25 18:26:51 +00:00
2009-02-25 18:26:51 +00:00
2009-05-12 17:03:42 +00:00
2009-05-12 17:03:42 +00:00
2009-05-12 17:03:42 +00:00
2009-02-25 18:26:51 +00:00
2009-04-18 16:15:12 +00:00
2009-02-25 18:26:51 +00:00
2009-10-27 18:00:45 +00:00
2008-06-02 21:41:35 +00:00
2008-06-02 21:41:35 +00:00
2009-10-28 21:36:40 +00:00
2009-04-23 17:43:39 +00:00
2009-07-13 00:26:28 +00:00
2009-07-21 15:55:17 +00:00
2009-02-25 18:26:51 +00:00
2009-04-16 16:02:25 +00:00
2009-05-12 17:03:42 +00:00
2009-04-23 17:48:37 +00:00
2009-05-12 17:03:42 +00:00
2009-05-18 00:21:17 +00:00
2009-07-21 15:55:17 +00:00
2009-10-15 18:56:11 +00:00
2009-02-25 18:26:51 +00:00
2009-02-25 18:26:51 +00:00
2009-05-12 17:03:42 +00:00
2009-02-25 18:26:51 +00:00
2009-02-25 18:26:51 +00:00
2009-02-25 18:26:51 +00:00
2009-02-25 18:26:51 +00:00
2009-10-28 21:36:40 +00:00
2009-10-20 18:44:44 +00:00