它是pthread_create()中的参数.我认为每个部分的意思是:
It's the parameter in pthread_create(). I think each part means:
void *:返回值是一个void指针.
void *: The return value is a void pointer.
(*):它是一个函数指针.
(void *):它接受一个无类型指针作为参数.
(void *): It takes an untyped pointer as a parameter.
正确吗?
是,它是一个无名函数指针的签名,它接受并返回void *.
Yes, it is the signature of a nameless function pointer that takes and returns void *.
如果它有一个名字(如在一个变量中)它会是:
If it had a name (as in a variable) it would be:
void *(*myFuncName)(void*)
这篇关于"void *(*)(void *)"是什么意思在 C++ 中是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
std::reference_wrapper 和简单指针的区别?Difference between std::reference_wrapper and simple pointer?(std::reference_wrapper 和简单指针的区别?)
常量之间的区别.指针和引用?Difference between const. pointer and reference?(常量之间的区别.指针和引用?)
c++ - 如何从指向向量的指针访问向量的内容?How to access the contents of a vector from a pointer to the vector in C++?(c++ - 如何从指向向量的指针访问向量的内容?)
*& 的含义和**&在 C++ 中Meaning of *amp; and **amp; in C++(*amp; 的含义和**amp;在 C++ 中)
为什么我不能对普通变量进行多态?Why can#39;t I do polymorphism with normal variables?(为什么我不能对普通变量进行多态?)
取消引用已删除的指针总是会导致访问冲突?Dereferencing deleted pointers always result in an Access Violation?(取消引用已删除的指针总是会导致访问冲突?)