| synopsis || arguments || prev || next |

kdu_serve_target::lock_codestream

virtual void lock_codestream( int codestream_id, void * thread_handle)

[Declared in "../apps/kdu_server/kdu_serve.h"]

Go to class description.


Synopsis

Call this function before accessing a kdu_codestream object returned by attach_to_codestream to ensure that other threads of execution do not access it at the same time. Of course, you should release the lock by calling release_codestream as soon as possible. You should not attempt to lock any more than one code-stream at a time.


Arguments

codestream_id [int]

thread_handle [void *]

Must be the same address which was passed into the attach_to_codestream function.


| top || synopsis || arguments || prev || next |