Commit cf4d097f authored by Éric Thiébaut's avatar Éric Thiébaut
Browse files

Fix doc.

parent 472c135e
......@@ -705,16 +705,17 @@ extern tao_status tao_remote_camera_kill(
* Typical usage to wait for the next image:
*
* ```{.c}
* double maxsecs = 5.0; // max. number of seconds to wait
* tao_remote_camera* cam = tao_remote_camera_attach(
* tao_config_read_shmid(camera_name));
* tao_serial serial = tao_remote_camera_wait_image(cam, 0, 3.2);
* tao_serial serial = tao_remote_camera_wait_image(cam, 0, maxsecs);
* if (serial > 0) {
* tao_shmid shmid = tao_remote_camera_get_image_shmid(cam, serial);
* if (shmid != TAO_BAD_SHMID) {
* tao_shared_array *arr = tao_shared_array_attach(shmid);
* if (arr != NULL) {
* // Lock image to make sure its contents remains untouched.
* if (tao_shared_array_lock(arr) == TAO_OK) {
* if (tao_shared_array_rdlock(arr) == TAO_OK) {
* if (tao_shared_array_get_serial(arr) == serial) {
* // Process image data and unlock it.
* ....
......@@ -754,7 +755,7 @@ extern tao_status tao_remote_camera_kill(
* }
* // Lock image for reading (this will block until image has
* // been acquired).
* tao_status status = tao_shared_array_timed_lock(arr, maxsecs);
* tao_status status = tao_shared_array_timed_rdlock(arr, maxsecs);
* if (status == TAO_OK) {
* // Check that image has not been overwritten.
* tao_serial serial = tao_shared_array_get_serial(arr);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment