next up previous 264
Next: Copying Objects
Up: AST Objects within Multi-threaded Applications
Previous: Locking AST Objects for Exclusive Use

AST Pointer Contexts

Each thread maintains its own set of nested AST contexts, so when astEnd is called, only Objects that are locked by the current thread will be annulled.

If an Object is unlocked by a thread using astUnlock, it is exempted from context handling so that subsequent invocations of astEnd will not cause it to be annulled (this is similar to using astExempt on the Object). When the Object is subsequently locked by another thread using astLock, it will be imported into the context that was active when astLock was called.



next up previous 264
Next: Copying Objects
Up: AST Objects within Multi-threaded Applications
Previous: Locking AST Objects for Exclusive Use

AST A Library for Handling World Coordinate Systems in Astronomy
Starlink User Note 211
R.F. Warren-Smith & D.S. Berry
24th May 2011
E-mail:ussc@star.rl.ac.uk

Copyright (C) 2009 Science \& Technology Facilities Council