document context create cannot execute in parallel
authorAndy Green <andy.green@linaro.org>
Tue, 20 Oct 2015 04:24:00 +0000 (12:24 +0800)
committerAndy Green <andy.green@linaro.org>
Tue, 20 Oct 2015 04:24:00 +0000 (12:24 +0800)
Reported by Ash 20001 <ash20001@hotmail.com>

Signed-off-by: Andy Green <andy.green@linaro.org>
README.coding.md

index a8a9f9d..c221347 100644 (file)
@@ -44,6 +44,12 @@ websocket ones, you can combine them together with the websocket ones
 in one poll loop, see "External Polling Loop support" below, and
 still do it all in one thread / process context.
 
+If you insist on trying to use it from multiple threads, take special care if
+you might simultaneously create more than one context from different threads.
+
+SSL_library_init() is called from the context create api and it also is not
+reentrant.  So at least create the contexts sequentially.
+
 
 Only send data when socket writeable
 ------------------------------------