зеркало из https://github.com/mozilla/gecko-dev.git
Add removeThreadLocal method.
This commit is contained in:
Родитель
8ca97fa895
Коммит
1e13a69fde
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче