test: lib: add uthread test

Add a thread framework test to the lib tests. Update the API
documentation to use the test as an example.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
diff --git a/doc/api/uthread.rst b/doc/api/uthread.rst
index 21233ff..8b25cc1 100644
--- a/doc/api/uthread.rst
+++ b/doc/api/uthread.rst
@@ -4,4 +4,16 @@
 ===========
 
 .. kernel-doc:: include/uthread.h
+   :doc: Overview
+
+.. kernel-doc:: include/uthread.h
    :internal:
+
+Example
+-------
+
+Here is an example of how to use this API:
+
+.. literalinclude:: ../../test/lib/uthread.c
+   :language: c
+   :linenos: