Multithreaded Programming Guide

Return Values

Returns zero after completing successfully. Any other returned value indicates that an error occurred. When any of the following conditions occur, pthread_keycreate() fails and returns the corresponding value.


The key name space is exhausted.


Not enough virtual memory is available in this process to create a new key.