Function report |
Source Code:lib\is_single_threaded.c |
Create Date:2022-07-28 06:14:18 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Returns true if the task does not share ->mm with another thread/process.
Proto:bool current_is_single_threaded(void)
Type:bool
Parameter:Nothing
| 17 | task = current process |
| 22 | If atomic_read( & live) != 1 Then Return false |
| 28 | ret = false |
| 31 | If Value for the false possibility is greater at compile time( Per task flags (PF_*), defined further below: & I am a kernel thread ) Then Continue |
| 33 | If Value for the false possibility is greater at compile time(p == group_leader) Then Continue |
| 36 | for_each_thread(p, t) |
| 37 | If Value for the false possibility is greater at compile time(mm == mm) Then Go to found |
| 39 | If Value is more likely to compile time(mm) Then Break |
| 46 | smp_rmb() |
| 49 | ret = true |
| 50 | found : |
| 53 | Return ret |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |