- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for modifyThread (0.32 sec)
-
guava/src/com/google/common/util/concurrent/Callables.java
private static boolean trySetName(String threadName, Thread currentThread) { /* * setName should usually succeed, but the security manager can prohibit it. Is there a way to * see if we have the modifyThread permission without catching an exception? */ try { currentThread.setName(threadName); return true; } catch (SecurityException e) { return false; } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 18:32:03 UTC 2023 - 4.4K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Callables.java
private static boolean trySetName(String threadName, Thread currentThread) { /* * setName should usually succeed, but the security manager can prohibit it. Is there a way to * see if we have the modifyThread permission without catching an exception? */ try { currentThread.setName(threadName); return true; } catch (SecurityException e) { return false; } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 18:32:03 UTC 2023 - 4.4K bytes - Viewed (0)