[llvm] r220941 - Threading.h: Give named parameters to llvm::call_once(flag, UserFn). [-Wdocumentation]

NAKAMURA Takumi geek4civic at gmail.com
Thu Oct 30 17:54:20 PDT 2014


Author: chapuni
Date: Thu Oct 30 19:54:20 2014
New Revision: 220941

URL: http://llvm.org/viewvc/llvm-project?rev=220941&view=rev
Log:
Threading.h: Give named parameters to llvm::call_once(flag,UserFn). [-Wdocumentation]

Modified:
    llvm/trunk/include/llvm/Support/Threading.h

Modified: llvm/trunk/include/llvm/Support/Threading.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Threading.h?rev=220941&r1=220940&r2=220941&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Threading.h (original)
+++ llvm/trunk/include/llvm/Support/Threading.h Thu Oct 30 19:54:20 2014
@@ -68,8 +68,7 @@ typedef volatile sys::cas_flag once_flag
 ///
 /// \param flag Flag used for tracking whether or not this has run.
 /// \param UserFn Function to call once.
-void call_once(once_flag&, void (*)(void));
-
+void call_once(once_flag &flag, void (*UserFn)(void));
 }
 
 #endif





More information about the llvm-commits mailing list