Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
45481101
Kaydet (Commit)
45481101
authored
Ock 29, 2016
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl: update documentation to std::bind
Change-Id: Ibabcc78a6b30740a8a0f675591dc37dfd5887be9
üst
0e57d54e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
threadex.hxx
include/vcl/threadex.hxx
+5
-5
No files found.
include/vcl/threadex.hxx
Dosyayı görüntüle @
45481101
...
@@ -159,7 +159,7 @@ private:
...
@@ -159,7 +159,7 @@ private:
(e.g. for out parameters) to foreign threads, use inout_by_ref()
(e.g. for out parameters) to foreign threads, use inout_by_ref()
for this purpose. For in parameters, this may not affect you, because
for this purpose. For in parameters, this may not affect you, because
the functor object is copy constructed into free store. This way
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.
for objects on your thread's stack.
Use inout_by_ref() or inout_by_ptr() for this purpose, e.g.
Use inout_by_ref() or inout_by_ptr() for this purpose, e.g.
...
@@ -168,15 +168,15 @@ private:
...
@@ -168,15 +168,15 @@ private:
long n = 3;
long n = 3;
// calling foo( long & r ):
// calling foo( long & r ):
syncExecute(
boost
::bind( &foo, inout_by_ref(n) ) );
syncExecute(
std
::bind( &foo, inout_by_ref(n) ) );
// calling foo( long * p ):
// calling foo( long * p ):
syncExecute(
boost
::bind( &foo, inout_by_ptr(&n) ) );
syncExecute(
std
::bind( &foo, inout_by_ptr(&n) ) );
char const* pc = "default";
char const* pc = "default";
// calling foo( char const** ppc ):
// 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 ):
// calling foo( char const*& rpc ):
syncExecute(
boost
::bind( &foo, inout_by_ref(pc) ) );
syncExecute(
std
::bind( &foo, inout_by_ref(pc) ) );
\endcode
\endcode
@tpl ResultT result type, defaults to FuncT::result_type to seamlessly
@tpl ResultT result type, defaults to FuncT::result_type to seamlessly
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment