| 2671 | } |
| 2672 | |
| 2673 | void* thread1(void* pParam) |
| 2674 | { |
| 2675 | ErasureCodeShec* shec = (ErasureCodeShec*) pParam; |
| 2676 | set<int> want_to_decode; |
| 2677 | set<int> available_chunks; |
| 2678 | set<int> minimum_chunks; |
| 2679 | |
| 2680 | want_to_decode.insert(0); |
| 2681 | want_to_decode.insert(1); |
| 2682 | available_chunks.insert(0); |
| 2683 | available_chunks.insert(1); |
| 2684 | available_chunks.insert(2); |
| 2685 | |
| 2686 | printf("*** thread loop start ***\n"); |
| 2687 | g_flag = 1; |
| 2688 | while (g_flag == 1) { |
| 2689 | shec->_minimum_to_decode(want_to_decode, available_chunks, &minimum_chunks); |
| 2690 | } |
| 2691 | printf("*** thread loop end ***\n"); |
| 2692 | |
| 2693 | return NULL; |
| 2694 | } |
| 2695 | |
| 2696 | void* thread2(void* pParam) |
| 2697 | { |
nothing calls this directly
no test coverage detected