" parameter determines what happens if the supplied Object is curently locked
by another thread when this function is invoked.
", the calling thread waits until the object is available for it to use. Otherwise, an error is reported and the function returns immediately without locking the Object.
The astAnnul function is exceptional in that it can be used on pointers for Objects that are not currently locked by the calling thread. All other AST functions will report an error.
The Locked object will belong to the current AST context.
This function returns without action if the Object is already locked by the calling thread.
If simultaneous use of the same object is required by two or more threads, astCopy should be used to to produce a deep copy of the Object for each thread. Each copy should then be unlocked by the parent thread (i.e. the thread that created the copy), and then locked by the child thread (i.e. the thread that wants to use the copy).
This function is only available in the C interface.
This function returns without action if the AST library has been built without POSIX
thread support (i.e. the
" option was not specified when running the