| 60 | USING_NS_BF_DBG; |
| 61 | |
| 62 | static void FilterThreadName(String& name) |
| 63 | { |
| 64 | for (int i = 0; i < (int)name.length(); i++) |
| 65 | { |
| 66 | uint8 c = name[i]; |
| 67 | if (c == 0) |
| 68 | { |
| 69 | name.RemoveToEnd(i); |
| 70 | return; |
| 71 | } |
| 72 | |
| 73 | if (c < 32) |
| 74 | { |
| 75 | name.Remove(i); |
| 76 | i--; |
| 77 | continue; |
| 78 | } |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | static bool IsHandleValid(HANDLE handle) |
| 83 | { |
no test coverage detected