2003-09-13 Marcus Brinkmann <marcus@g10code.de>
* gpgme.texi (Multi Threading): Update documentation.
This commit is contained in:
parent
727f0ba45d
commit
33912dcc86
@ -1,3 +1,7 @@
|
|||||||
|
2003-09-13 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
|
* gpgme.texi (Multi Threading): Update documentation.
|
||||||
|
|
||||||
2003-09-03 Marcus Brinkmann <marcus@g10code.de>
|
2003-09-03 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
* gpgme.texi (Header): We don't use the assuan namespace anymore.
|
* gpgme.texi (Header): We don't use the assuan namespace anymore.
|
||||||
|
@ -514,18 +514,13 @@ Support for other thread libraries is very easy to add. Please
|
|||||||
contact us if you have the need.
|
contact us if you have the need.
|
||||||
|
|
||||||
@item
|
@item
|
||||||
If you link your program dynamically to @acronym{GPGME} and your
|
If you want to use @acronym{GPGME} with threads, you must link to the
|
||||||
supported thread library, @acronym{GPGME} will automatically detect
|
right version of the library. The name of the right library is
|
||||||
the presence of this library and activate its use. You must link to
|
@code{libgpgme-} followed by the name of the thread package you use.
|
||||||
the thread library before linking to @acronym{GPGME}. If you link to
|
For example, if you use GNU Pth, the right name is
|
||||||
both pthread and GNU Pth, @acronym{GPGME} will use the pthread
|
@code{libgpgme-pth}. Use the Automake macros or
|
||||||
support. This feature requires weak symbol support.
|
@command{gpgme-config} program for simplicity.
|
||||||
|
|
||||||
@item
|
|
||||||
If you link your program statically to @acronym{GPGME}, or your system
|
|
||||||
does not support weak symbols, there is currently no easy way to make
|
|
||||||
sure that @acronym{GPGME} detects the presence of the thread library.
|
|
||||||
This will be solved in a future version.
|
|
||||||
|
|
||||||
@item
|
@item
|
||||||
The function @code{gpgme_check_version} must be called before any
|
The function @code{gpgme_check_version} must be called before any
|
||||||
@ -582,6 +577,10 @@ Only one thread at any time is allowed to call @code{gpgme_wait}. If
|
|||||||
multiple threads call this function, the caller must make sure that
|
multiple threads call this function, the caller must make sure that
|
||||||
all invocations are fully synchronized. It is safe to start
|
all invocations are fully synchronized. It is safe to start
|
||||||
asynchronous operations while a thread is running in gpgme_wait.
|
asynchronous operations while a thread is running in gpgme_wait.
|
||||||
|
|
||||||
|
@item
|
||||||
|
The function @code{gpgme_strerror} is not thread safe. You have to
|
||||||
|
use @code{gpgme_strerror_r} instead.
|
||||||
@end itemize
|
@end itemize
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user