зеркало из https://github.com/mozilla/pjs.git
Add removeThreadLocal method.
This commit is contained in:
Родитель
89d00fda22
Коммит
03640e82e5
|
@ -1435,6 +1435,17 @@ public final class Context {
|
|||
hashtable.put(key, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove values from thread-local storage.
|
||||
* @param key the key for the entry to remove.
|
||||
* @since 1.5 release 2
|
||||
*/
|
||||
public void removeThreadLocal(Object key) {
|
||||
if (hashtable == null)
|
||||
return;
|
||||
hashtable.remove(key);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return whether functions are compiled by this context using
|
||||
* dynamic scope.
|
||||
|
|
|
@ -1435,6 +1435,17 @@ public final class Context {
|
|||
hashtable.put(key, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove values from thread-local storage.
|
||||
* @param key the key for the entry to remove.
|
||||
* @since 1.5 release 2
|
||||
*/
|
||||
public void removeThreadLocal(Object key) {
|
||||
if (hashtable == null)
|
||||
return;
|
||||
hashtable.remove(key);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return whether functions are compiled by this context using
|
||||
* dynamic scope.
|
||||
|
|
Загрузка…
Ссылка в новой задаче