Function silc_client_lock_server
SYNOPSIS
void silc_client_lock_server(SilcServerEntry server_entry);
DESCRIPTION
Acquires lock for the server entry indicate by `server_entry'. When
application wants to access `server_entry' it must lock the entry
before reading any data from the `server_entry'. The lock must be
unlocked with silc_client_unlock_server.
NOTES
The entry must be unlocked before calling any Client Library API
functions where the entry is given as argument, unless otherwise stated.
The entry should not be locked for long periods of time. For example,
it is not appropriate to hold the lock while waiting user interface to
be drawn. The appropriate way is to read the data and duplicate it if
necessary, unlock the entry, then draw on the user interface.
This function is not needed if application is not multithreaded.
|