Pthread_mutex_lock accepts a single pointer to a mutex to lock.
pthread _ mutex_lock接受一个指向互斥对象的指针作为参数以将其锁定。
If there is only a single mapping to the page, then a single pointer called "direct" can be used instead of a linked list.
如果只有一个到这个页的映射,那么可以用一个叫做“direct”的指针来代替链表。
This allows you to create an arbitrarily complicated data structure for the thread to work on, and pass it in as a single pointer.
这样允许您创建一个任意复杂的数据结构,并将它作为一个指针传送给需要在这个数据结构上进行操作的线程。
Back to the API: the PPE can pass a single pointer into the program, so multiple arguments have to be bundled up. My solution is this.
现在回到API上来:PPE只能向程序传递一个指针,因此多个参数必须要捆绑在一起传递。
You could even just use a single pointer and write data back into the buffer you got it from, although this might be a nuisance to program for on the other end.
您甚至只需要使用一个指针并将数据写回到读取数据所使用的缓冲区中即可,不过这对于另外一端的编程来说可能有些麻烦。
You could even just use a single pointer and write data back into the buffer you got it from, although this might be a nuisance to program for on the other end.
您甚至只需要使用一个指针并将数据写回到读取数据所使用的缓冲区中即可,不过这对于另外一端的编程来说可能有些麻烦。
应用推荐