?? wyonce.3wy
字號:
.\".\" Edited by I.J.Wang, 2004.\".TH WyOnce 3wy "libwy v0.31".SH NAMEWyOnce \- class of once variable.SH SYNOPSIS.B #include <wyonce.h>.PPWyOnce is the discardable class that ensures a given function is called at most once..SH "PUBLIC MEMBERS" \fBWyOnce\fP() throw() \fBWyOnce\fP( void(*)(void) ) bool \fBis_default\fP(void) const throw() void \fBonce\fP( void(*)(void) ).SH "DESCRIPTION".\"--------------------------------------------.PP.BI "WyOnce() throw()".PP Construct default object (object has never been used to call the ensured once function).\"--------------------------------------------.PP.BI "WyOnce( void(*" "once_func" ")(void) )".PP Construct object, then call \fIonce_func\fP immediately..PP [\fBThrow\fP] (Reserved).PP [\fBRefer\fP] ::pthread_once.\"--------------------------------------------.PP.BI "bool is_default(void) const throw()".TP Is *this equivalent to the default object.PP [\fBRet\fP] true= object is equivalent to WyOnce(). (object has never been used to call the ensured once function) false= otherwise.\"--------------------------------------------.PP.BI "void once( void(*" "once_func" ")(void) )" .PP Call \fIonce_func()\fP and make object non-default. If object is already non-defaut, this function has no effect..PP [\fBThrow\fP] (Reserved).PP [\fBRefer\fP] ::pthread_once.\"--------------------------------------------.SH "SEE ALSO".BR wyreply.BR wyret.BR wymutex.BR wylock.BR wytimespec.BR wy_thread.SH NOTEExcept added by this library, replys are converted from the errno an underlying C library function returned. Report of such replysare brief from Linux Programmer's Manual. See the associated man pagefor details.Project is in development, http://sourceforge.net/projects/libwx
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -