⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wyonce.3wy

📁 一个不错
💻 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 + -