|
You should be careful to call target.clear only if you are positive that you want the target reset to the default. This is often not the case. The normal procedure for reverting the target to its previous value is discussed in target.set.
Every thread has its own target, so you do not need to protect the target with semaphores.
target.set (nil) is equivalent to target.clear ().
|