| 3508 | |
| 3509 | |
| 3510 | VOID |
| 3511 | Ext2StopReaper(PEXT2_REAPER Reaper) |
| 3512 | { |
| 3513 | LARGE_INTEGER timeout; |
| 3514 | |
| 3515 | Reaper->Flags |= EXT2_REAPER_FLAG_STOP; |
| 3516 | KeSetEvent(&Reaper->Wait, 0, FALSE); |
| 3517 | |
| 3518 | /* make sure Reaperthread is started */ |
| 3519 | timeout.QuadPart = (LONGLONG)-10*1000*1000*2; /* 2 seconds */ |
| 3520 | KeWaitForSingleObject( |
| 3521 | &Reaper->Engine, |
| 3522 | Executive, |
| 3523 | KernelMode, |
| 3524 | FALSE, |
| 3525 | &timeout); |
| 3526 | } |