pthread_setspecific.3 (3e9ed1efb85a632c2b4bee70f3ae37a464aba6ad) | pthread_setspecific.3 (e5315a56df63d53c7635d36f2f3026aed9378b9e) |
---|---|
1.\" Copyright (c) 1996 John Birrell <jb@cimlogic.com.au>. 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 53 unchanged lines hidden (view full) --- 62.Fa key 63has been deleted with 64.Fn pthread_key_delete 65is undefined. 66.Pp 67The 68.Fn pthread_setspecific 69function may be called from a thread-specific data destructor function, | 1.\" Copyright (c) 1996 John Birrell <jb@cimlogic.com.au>. 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 53 unchanged lines hidden (view full) --- 62.Fa key 63has been deleted with 64.Fn pthread_key_delete 65is undefined. 66.Pp 67The 68.Fn pthread_setspecific 69function may be called from a thread-specific data destructor function, |
70however this may result in lost storage or infinite loops. | 70however this may result in lost storage or infinite loops if doing so 71causes non-NULL key values to remain after 72.Bq PTHREAD_DESTRUCTOR_ITERATIONS 73iterations of destructor calls have been made. |
71.Sh RETURN VALUES 72If successful, the 73.Fn pthread_setspecific 74function will return zero. 75Otherwise an error number will be returned to 76indicate the error. 77.Sh ERRORS 78The --- 20 unchanged lines hidden --- | 74.Sh RETURN VALUES 75If successful, the 76.Fn pthread_setspecific 77function will return zero. 78Otherwise an error number will be returned to 79indicate the error. 80.Sh ERRORS 81The --- 20 unchanged lines hidden --- |