// File: /workspace/github_cpp_makefile_star2_O1/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 0x884d
leaq -0x48(%rbp), %r13
movq 0x48e1(%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 0xb07(%rip), %rsi       # 0x9213
leaq 0xb08(%rip), %rdx       # 0x921b
callq 0x497a
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 0x6aae
movq -0x268(%rbp), %rdi
leaq -0x258(%rbp), %rax
cmpq %rax, %rdi
je 0x876a
callq 0x3280
movq -0x58(%rbp), %rdi
cmpq %r13, %rdi
je 0x8778
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 0xa7e(%rip), %rsi       # 0x9213
leaq 0xa7f(%rip), %rdx       # 0x921b
callq 0x497a
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 0x87d8
callq 0x3280
movq -0x268(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x5, -0x248(%rbp,%rax)
jne 0x885f
movq (%r14), %rdi
addq $0x60, %rdi
movq %rbx, %rsi
callq 0x8934
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 0x86ee
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 0xa76(%rip), %rsi       # 0x92e9
movq %rax, %rdi
callq 0x3110
movq 0x476e(%rip), %rsi      # 0xcff0
movq 0x473f(%rip), %rdx      # 0xcfc8
movq %r14, %rdi
callq 0x3490
jmp 0x88d4
movq %rax, %rbx
movq %r14, %rdi
callq 0x3200
jmp 0x88d7
jmp 0x88cf
jmp 0x88a4
movq %rax, %rbx
jmp 0x88c4
movq %rax, %rbx
movq -0x268(%rbp), %rdi
leaq -0x258(%rbp), %rax
cmpq %rax, %rdi
je 0x88c4
callq 0x3280
movq -0x58(%rbp), %rdi
cmpq %r15, %rdi
jne 0x88f1
jmp 0x88f6
movq %rax, %rbx
jmp 0x88f6
movq %rax, %rbx
leaq -0x268(%rbp), %rdi
callq 0x3400
jmp 0x88f6
movq %rax, %rbx
movq -0x58(%rbp), %rdi
cmpq %r13, %rdi
je 0x88f6
callq 0x3280
movq %rbx, %rdi
callq 0x34b0