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

📄 pthread_once.man

📁 linux 下的线程库源码
💻 MAN
字号:
.TH PTHREAD_ONCE 3 LinuxThreads.SH NAMEpthread_once \- once-only initialization.SH SYNOPSIS#include <pthread.h>pthread_once_t once_control = PTHREAD_ONCE_INIT;int pthread_once(pthread_once_t *once_control, void (*init_routine) (void));.SH DESCRIPTIONThe purpose of !pthread_once! is to ensure that a piece ofinitialization code is executed at most once. The |once_control|argument points to a static or extern variable statically initializedto !PTHREAD_ONCE_INIT!.The first time !pthread_once! is called with a given |once_control|argument, it calls |init_routine| with no argument and changes thevalue of the |once_control| variable to record that initialization hasbeen performed. Subsequent calls to !pthread_once! with the same!once_control! argument do nothing. .SH "RETURN VALUE"!pthread_once! always returns 0..SH ERRORSNone..SH AUTHORXavier Leroy <Xavier.Leroy@inria.fr>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -