Re: Questions on threading

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Questions on threading

Steven Bade
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ken Goldman wrote:
| Referring to http://www.openssl.org/docs/crypto/threads.html
|
| 1
|
| "id_function(void) is a function that returns a thread ID. It is not
| needed on Windows nor on platforms where getpid() returns a different
| ID for each thread (most notably Linux)."
|
| Is this correct?  On my Linux system, getpid() returns the same pid
| for each thread.
|
Correct posix behavior is to return the same pid ... the old linux
threading did not return the same PID... that was fixed a while back..

| 2
|
| "You can find out if OpenSSL was configured with thread support:
|
|  #define OPENSSL_THREAD_DEFINES
|  #include <openssl/opensslconf.h>
|  #if defined(THREADS)
| "
|
| Is this correct?  I compiled for threads (seemed to be the default)
| and I saw -DOPENSSL_THREADS.  When I try the test, THREADS is not
| defined but OPENSSL_THREADS is.
|

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFCkf2QBKHgXq2RAKcRAsYpAJ0bmEZ3oCKOptHsOOxgaZfTVmaFAACdGHfl
RXdiZVPtUoW4tR1h8RRq2/M=
=B6vY
-----END PGP SIGNATURE-----

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Questions on threading

Dan Trainor-3
Steven Bade wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Ken Goldman wrote:
> | Referring to http://www.openssl.org/docs/crypto/threads.html
> |
> | 1
> |
> | "id_function(void) is a function that returns a thread ID. It is not
> | needed on Windows nor on platforms where getpid() returns a different
> | ID for each thread (most notably Linux)."
> |
> | Is this correct?  On my Linux system, getpid() returns the same pid
> | for each thread.
> |
> Correct posix behavior is to return the same pid ... the old linux
> threading did not return the same PID... that was fixed a while back..
>
> | 2
> |
> | "You can find out if OpenSSL was configured with thread support:
> |
> |  #define OPENSSL_THREAD_DEFINES
> |  #include <openssl/opensslconf.h>
> |  #if defined(THREADS)
> | "
> |
> | Is this correct?  I compiled for threads (seemed to be the default)
> | and I saw -DOPENSSL_THREADS.  When I try the test, THREADS is not
> | defined but OPENSSL_THREADS is.
> |
>

Ken -

We've observed the same thing, even a re-compilation of OpenSSL with a
'threads' argument at configure-time.

Have you found any more answers to this?

Thanks!
-dant
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]
Loading...