multithread

    [Queue] Thread 간 통신을 위한 Async Queue (비동기 큐)

    AsyncQueue라고 표현하면 뭔가 이해하기 쉽지 않습니다. AsyncQueue의 목적은 실제 Queue로 사용하기 보단 Multi-thread 환경에서 thread간 데이터 송수신을 위해 사용합니다. AsyncQueue에 대해 살펴보겠습니다. 저는 AsyncQueue를 pthread(mutex, cond) 기반으로 작성하였습니다. Header에 include되어 있는 다른 header와 source 파일은 아래 URL을 참고해주세요. https://github.com/linuxias/linux-system-programming/tree/master/DataStruct 아래 Header를 보시면 SAsyncQueue 구조체에 mutex, cond, SQueue (자체적으로 구현한 Queue) 등이 있습..