summaryrefslogtreecommitdiff
path: root/include/vcl/threadex.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-01-29 13:17:18 +0100
committerMichael Stahl <mstahl@redhat.com>2016-01-29 13:47:09 +0100
commit4548110146b7d392a9d24379025e4550c7d1a947 (patch)
treeab10ae0ff76fd1677cea2d34b3b9375c558e1f05 /include/vcl/threadex.hxx
parent0e57d54e1f8fe81d870ae18d6401f5ce104deb17 (diff)
vcl: update documentation to std::bind
Change-Id: Ibabcc78a6b30740a8a0f675591dc37dfd5887be9
Diffstat (limited to 'include/vcl/threadex.hxx')
-rw-r--r--include/vcl/threadex.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/vcl/threadex.hxx b/include/vcl/threadex.hxx
index 2bb011beb84a..47c1c44f76eb 100644
--- a/include/vcl/threadex.hxx
+++ b/include/vcl/threadex.hxx
@@ -159,7 +159,7 @@ private:
(e.g. for out parameters) to foreign threads, use inout_by_ref()
for this purpose. For in parameters, this may not affect you, because
the functor object is copy constructed into free store. This way
- you must not use \verbatim boost::cref()/boost::ref() \endverbatim or similar
+ you must not use \verbatim std::cref()/std::ref() \endverbatim or similar
for objects on your thread's stack.
Use inout_by_ref() or inout_by_ptr() for this purpose, e.g.
@@ -168,15 +168,15 @@ private:
long n = 3;
// calling foo( long & r ):
- syncExecute( boost::bind( &foo, inout_by_ref(n) ) );
+ syncExecute( std::bind( &foo, inout_by_ref(n) ) );
// calling foo( long * p ):
- syncExecute( boost::bind( &foo, inout_by_ptr(&n) ) );
+ syncExecute( std::bind( &foo, inout_by_ptr(&n) ) );
char const* pc = "default";
// calling foo( char const** ppc ):
- syncExecute( boost::bind( &foo, inout_by_ptr(&pc) ) );
+ syncExecute( std::bind( &foo, inout_by_ptr(&pc) ) );
// calling foo( char const*& rpc ):
- syncExecute( boost::bind( &foo, inout_by_ref(pc) ) );
+ syncExecute( std::bind( &foo, inout_by_ref(pc) ) );
\endcode
@tpl ResultT result type, defaults to FuncT::result_type to seamlessly