2000-02-01 09:37:00 +08:00
|
|
|
=pod
|
|
|
|
|
|
|
|
=head1 NAME
|
|
|
|
|
2013-06-13 06:42:08 +08:00
|
|
|
ERR_remove_thread_state, ERR_remove_state - free a thread's error queue
|
2000-02-01 09:37:00 +08:00
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
|
|
|
#include <openssl/err.h>
|
|
|
|
|
2013-06-13 06:42:08 +08:00
|
|
|
void ERR_remove_thread_state(const CRYPTO_THREADID *tid);
|
|
|
|
|
|
|
|
Deprecated:
|
|
|
|
|
2000-02-01 09:37:00 +08:00
|
|
|
void ERR_remove_state(unsigned long pid);
|
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
2013-06-13 06:42:08 +08:00
|
|
|
ERR_remove_thread_state() frees the error queue associated with thread B<tid>.
|
|
|
|
If B<tid> == B<NULL>, the current thread will have its error queue removed.
|
2000-02-01 09:37:00 +08:00
|
|
|
|
|
|
|
Since error queue data structures are allocated automatically for new
|
2000-05-19 15:54:42 +08:00
|
|
|
threads, they must be freed when threads are terminated in order to
|
2000-02-01 09:37:00 +08:00
|
|
|
avoid memory leaks.
|
|
|
|
|
2013-06-13 06:42:08 +08:00
|
|
|
ERR_remove_state is deprecated and has been replaced by
|
|
|
|
ERR_remove_thread_state. Since threads in OpenSSL are no longer identified
|
|
|
|
by unsigned long values any argument to this function is ignored. Calling
|
|
|
|
ERR_remove_state is equivalent to B<ERR_remove_thread_state(NULL)>.
|
|
|
|
|
2000-02-01 09:37:00 +08:00
|
|
|
=head1 RETURN VALUE
|
|
|
|
|
2013-06-13 06:42:08 +08:00
|
|
|
ERR_remove_thread_state and ERR_remove_state() return no value.
|
2000-02-01 09:37:00 +08:00
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2015-08-18 03:21:33 +08:00
|
|
|
L<err(3)>
|
2000-02-01 09:37:00 +08:00
|
|
|
|
|
|
|
=head1 HISTORY
|
|
|
|
|
2015-10-28 01:40:11 +08:00
|
|
|
ERR_remove_state()
|
|
|
|
was deprecated in OpenSSL 1.0.0 when ERR_remove_thread_state() was introduced
|
2013-06-13 06:42:08 +08:00
|
|
|
and thread IDs were introduced to identify threads instead of 'unsigned long'.
|
2000-02-01 09:37:00 +08:00
|
|
|
|
|
|
|
=cut
|