Header changes.
authorPekka Riikonen <priikone@silcnet.org>
Fri, 15 Sep 2006 12:05:22 +0000 (12:05 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Fri, 15 Sep 2006 12:05:22 +0000 (12:05 +0000)
lib/silcutil/silcbuffer.h
lib/silcutil/silcdlist.h
lib/silcutil/silcidcache.h
lib/silcutil/silclist.h
lib/silcutil/silcmime.h
lib/silcutil/silcstack.h
lib/silcutil/silcvcard.h

index f70c020da4adc485e82e5260d57555ca423625fa..b88af80e087db8ebcea95b0f9fb45afe71eb18af 100644 (file)
  *     section. Tail section can be pulled towards end, and thus the data
  *     section becomes larger.
  *
+ * SILC Buffer is not thread-safe.  If the same buffer context must be used
+ * in multithreaded environment concurrency control must be employed.
+ *
  * SOURCE
  */
 typedef struct {
index d205ede0a9a1a55e91e05024edd097ff441a0efa..cb46c82f303b825bb9202ef7ae03c3d002bb2dbb 100644 (file)
  * will automatically allocate list entries.  Normal SILC List API cannot
  * be used for this purpose because in that case the context passed to the
  * list must be defined as list structure already.  This is not the case in
- * SilcDList.
+ * SilcDList.  But SilcDList is a bit slower than SilcList because it 
+ * requires memory allocation when adding new entries to the list.
  *
- * This is slower than SilcList because this requires one extra memory
- * allocation when adding new entries to the list.  The context is probably
- * allocated already and the new list entry requires one additional memory
- * allocation.  The memory allocation and freeing is done automatically in
- * the API and does not show to the caller.
+ * SILC Dynamic List is not thread-safe.  If the same list context must be 
+ * used in multithreaded environment concurrency control must be employed.
  *
  ***/
 
index 7b84e7bc01624c86b199ec6f05492b60ee5ab50e..402c17158f385b5da2b4995b738b661f25a4a89d 100644 (file)
@@ -25,6 +25,9 @@
  * protocol.  Application can save here the ID's it uses and the interface
  * provides fast retrieval of the ID's from the cache.
  *
+ * SILC ID Cache is not thread-safe.  If the same cache context must be 
+ * used in multithreaded environment concurrency control must be employed.
+ *
  ***/
 
 #ifndef SILCIDCACHE_H
index 1cd197700eea7cf9076fcab1855d0bbdfda55c25..e7d9c53bf1d1f0da084f2adee395b6aebb51bc3a 100644 (file)
@@ -24,6 +24,9 @@
  * Implementation of the SilcList interface.  This interface provides
  * simple linked list.
  *
+ * SILC List is not thread-safe.  If the same list context must be used
+ * in multithreaded environment concurrency control must be employed.
+ *
  ***/
 
 #ifndef SILCLIST_H
index 653a662527441626f3a110efbd2fa663cd218279..8bc221cd07ec2d968228c3e60b42d296ec94a410 100644 (file)
@@ -25,6 +25,9 @@
  * MIME messages, multipart MIME messages, including nested multiparts, and
  * MIME fragmentation and defragmentation.
  *
+ * SILC Mime API is not thread-safe.  If the same MIME context must be
+ * used in multithreaded environment concurrency control must be employed.
+ *
  ***/
 
 #ifndef SILCMIME_H
index c8ce3be50adadecae5e67bd4fdce57fb88cc793b..e5d59af375726b7996b4c7872977e66b942ce924 100644 (file)
@@ -46,6 +46,9 @@
  * silc_buffer_sclone, silc_buffer_sformat, silc_buffer_sformat_vp,
  * silc_buffer_sstrformat, silc_mp_sinit
  *
+ * The data stack is not thread-safe.  If the same stack context must be 
+ * used in multithreaded environment concurrency control must be employed.
+ *
  ***/
 
 #ifndef SILCSTACK_H
index e0ee3a832ee29cc30c2aba75b5289ad0acdb0097..e0572cdbaf1346cf96807c26c9cc2a1032fe2c0a 100644 (file)
@@ -122,8 +122,8 @@ unsigned char *silc_vcard_encode(SilcVCard vcard, SilcUInt32 *vcard_len);
  *
  * SYNOPSIS
  *
- *    SilcBool silc_vcard_decode(const unsigned char *data, SilcUInt32 data_len,
- *                           SilcVCard vcard);
+ *    SilcBool silc_vcard_decode(const unsigned char *data,
+ *                               SilcUInt32 data_len, SilcVCard vcard);
  *
  * DESCRIPTION
  *
@@ -135,7 +135,7 @@ unsigned char *silc_vcard_encode(SilcVCard vcard, SilcUInt32 *vcard_len);
  *
  ***/
 SilcBool silc_vcard_decode(const unsigned char *data, SilcUInt32 data_len,
-                      SilcVCard vcard);
+                          SilcVCard vcard);
 
 /****f* silcutil/SilcVCard/silc_vcard_alloc
  *