| Subject: | Re: libsmbclient threadsafeness |
|---|---|
| From: | "Michael B Allen" |
| Date: | Wed, 20 Oct 2004 23:37:17 -0400 EDT |
Igor Belyi said: > Well.. I was refering to 'errno' which is used as an error reason in > convert_string_allocate and as an error indicator in smb_iconv(). Global > variables are not very friendly in multithreaded environment. No, errno is a per-thread variable. Technically I believe _REENTRANT must be defined but virtually a C library implementations implement errno as a macro for a function that retrieves errno from a per-thread location. IOW errno is thread safe. Mike |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: libsmbclient threadsafeness, Igor Belyi |
|---|---|
| Next by Date: | Re: libsmbclient threadsafeness, Igor Belyi |
| Previous by Thread: | Re: libsmbclient threadsafeness, Igor Belyi |
| Next by Thread: | Re: libsmbclient threadsafeness, Igor Belyi |
| Indexes: | [Date] [Thread] [Top] [All Lists] |