pthread_setspecific.3 (f9f9d2e8040ee20c82d4bfcf245bd284f0b1a7ee) pthread_setspecific.3 (ddbb94ad969a7574d6fedadcabf041688cb6e81d)
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.

--- 37 unchanged lines hidden (view full) ---

46.Fn pthread_setspecific "pthread_key_t key" "const void *value"
47.Sh DESCRIPTION
48The
49.Fn pthread_setspecific
50function associates a thread-specific value with a
51.Fa key
52obtained via a previous call to
53.Fn pthread_key_create .
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.

--- 37 unchanged lines hidden (view full) ---

46.Fn pthread_setspecific "pthread_key_t key" "const void *value"
47.Sh DESCRIPTION
48The
49.Fn pthread_setspecific
50function associates a thread-specific value with a
51.Fa key
52obtained via a previous call to
53.Fn pthread_key_create .
54Different threads man bind different values to the same key.
54Different threads can bind different values to the same key.
55These values are
56typically pointers to blocks of dynamically allocated memory that have been
57reserved for use by the calling thread.
58.Pp
59The effect of calling
60.Fn pthread_setspecific
61with a key value not obtained from
62.Fn pthread_key_create

--- 38 unchanged lines hidden ---
55These values are
56typically pointers to blocks of dynamically allocated memory that have been
57reserved for use by the calling thread.
58.Pp
59The effect of calling
60.Fn pthread_setspecific
61with a key value not obtained from
62.Fn pthread_key_create

--- 38 unchanged lines hidden ---