"Jeremy Farrell" <[EMAIL PROTECTED]> writes:

>> From: Friedrich Dominicus
>> 
>> I'm trying to get into openssl programming and run into the 
>> following "problem". I've found nothing about that neither 
>> while searching the web nore looking into this lib.
>> 
>> According to  threads(3) and also mentioned in "network 
>> security with OpenSSL" from O'Reilly one has to provide 
>> callback functions for using OpenSSL with threads. 
>> 
>> Now there do exist a few libraries (e.g libapr and glib) and 
>> they have libraries for thread support also, and now comes my 
>> question. What is the id_function while using glib? 
>> can I simply cast one member of the GThread struct? (maybe 
>> data?) alternatively what would be the callback function for libapr?
>
> You need to use whatever mechanism is normal in your threading
> environment of choice to generate a unique consistent identifier for a
> thread. 
I would argue my mails have shown that I have realized that. Now I
asked especially about "portable" libraries and what to use from
them. As pointed out glib2 does not have an idea of some unique thread
id (AFAIU) but as someone else has posted this might be different in
libapr. So my question was on the point. 


>If you don't know what that is, the place to ask is a list or
> group which discusses that environment's threading facilities. 
Well I can not see why that question should be misplaced here. Well
everyone here using threads must decide on this and so it's quite
possible that someone has checked the available alternatives. 

Regards
Friedrich
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to