// File: /workspace/github_cpp_makefile_star2_O3/jianxinzhou[P]Smart/./src/MyCacheThread.cpp
// Function: MyCacheThread::scan_cache()
void MyCacheThread::scan_cache()
{
    std::vector<MyThread*>::iterator iter = vecWorkThreadPtr_.begin();
    for(; 
        iter != vecWorkThreadPtr_.end(); 
        ++iter)
    {
        ( (*iter) -> cache_ ).read_from_file( (threadPoolPtr_ -> conf_).getMapConf()["my_cache"].c_str()) ;
        
        std::ofstream outfile( (threadPoolPtr_ -> conf_).getMapConf()["my_cache"].c_str() ) ;
        if(!outfile)
        {
            throw std::runtime_error("scan cache : open cache failed");
        }		
        
        ( (*iter ) -> cache_ ).write_to_file(outfile) ;
        outfile.close();
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
movq 0x60(%rdi), %r14
cmpq 0x68(%rdi), %r14
je 0x8805
leaq -0x48(%rbp), %r13
movq 0x4929(%rip), %rax      # 0xcfb8
movq (%rax), %rcx
movq %rcx, -0x68(%rbp)
movq 0x18(%rax), %rax
movq %rax, -0x60(%rbp)
leaq -0x58(%rbp), %rbx
movq %rdi, -0x38(%rbp)
movq (%r14), %r12
movq 0x58(%rdi), %rax
movq %r13, %rcx
movq (%rax), %r13
movq %rcx, %r15
movq %rcx, -0x58(%rbp)
movq %rbx, %rdi
leaq 0xb4f(%rip), %rsi       # 0x9213
leaq 0xb50(%rip), %rdx       # 0x921b
callq 0x4984
addq $0x208, %r13            # imm = 0x208
movq %r13, %rdi
movq %rbx, %rsi
callq 0x4728
movq (%rax), %rsi
leaq -0x268(%rbp), %rbx
movq %rbx, %rdi
leaq -0x29(%rbp), %rdx
movq %r15, %r13
callq 0x3120
addq $0x60, %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x6aa4
movq -0x268(%rbp), %rdi
leaq -0x258(%rbp), %rax
cmpq %rax, %rdi
je 0x8722
callq 0x3280
movq -0x58(%rbp), %rdi
cmpq %r13, %rdi
je 0x8730
callq 0x3280
movq -0x38(%rbp), %rax
movq 0x58(%rax), %rax
movq (%rax), %r12
movq %r13, -0x58(%rbp)
leaq -0x58(%rbp), %rbx
movq %rbx, %rdi
leaq 0xac6(%rip), %rsi       # 0x9213
leaq 0xac7(%rip), %rdx       # 0x921b
callq 0x4984
addq $0x208, %r12            # imm = 0x208
movq %r12, %rdi
movq %rbx, %rsi
callq 0x4728
leaq -0x268(%rbp), %rbx
movq (%rax), %rsi
movq %rbx, %rdi
movl $0x10, %edx
callq 0x3300
movq -0x58(%rbp), %rdi
cmpq %r13, %rdi
je 0x8790
callq 0x3280
movq -0x268(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x5, -0x248(%rbp,%rax)
jne 0x8817
movq (%r14), %rdi
addq $0x60, %rdi
movq %rbx, %rsi
callq 0x88ec
movq %rbx, %rdi
callq 0x33c0
movq -0x68(%rbp), %rax
movq %rax, -0x268(%rbp)
movq -0x18(%rax), %rax
movq -0x60(%rbp), %rcx
movq %rcx, -0x268(%rbp,%rax)
leaq -0x260(%rbp), %rdi
callq 0x3260
leaq -0x170(%rbp), %rdi
callq 0x30e0
addq $0x8, %r14
movq -0x38(%rbp), %rdi
cmpq 0x68(%rdi), %r14
leaq -0x58(%rbp), %rbx
jne 0x86a6
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x3160
movq %rax, %r14
leaq 0xabe(%rip), %rsi       # 0x92e9
movq %rax, %rdi
callq 0x3110
movq 0x47b6(%rip), %rsi      # 0xcff0
movq 0x4787(%rip), %rdx      # 0xcfc8
movq %r14, %rdi
callq 0x3490
jmp 0x888c
movq %rax, %rbx
movq %r14, %rdi
callq 0x3200
jmp 0x888f
jmp 0x8887
jmp 0x885c
movq %rax, %rbx
jmp 0x887c
movq %rax, %rbx
movq -0x268(%rbp), %rdi
leaq -0x258(%rbp), %rax
cmpq %rax, %rdi
je 0x887c
callq 0x3280
movq -0x58(%rbp), %rdi
cmpq %r15, %rdi
jne 0x88a9
jmp 0x88ae
movq %rax, %rbx
jmp 0x88ae
movq %rax, %rbx
leaq -0x268(%rbp), %rdi
callq 0x3400
jmp 0x88ae
movq %rax, %rbx
movq -0x58(%rbp), %rdi
cmpq %r13, %rdi
je 0x88ae
callq 0x3280
movq %rbx, %rdi
callq 0x34b0