| synopsis || arguments || prev || next |
virtual void lock_codestream( int codestream_id, void * thread_handle)
[Declared in "../apps/kdu_server/kdu_serve.h"]
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.
Must be the same address which was passed into the attach_to_codestream function.