Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 1.44 KB

README.md

File metadata and controls

13 lines (11 loc) · 1.44 KB

PosixDispatch

A cross-platform library written in Swift 5 for multithreading based on POSIX threads. It has a similar API to Apple’s GCD and in most cases works much faster.

It consists of the following:

  • PLock - wrapper for POSIX mutex, analog to NSLock
  • PCondition - wrapper for POSIX condition, analog to NSCondition
  • PThread - wrapper for POSIX thread, analog to Thread
  • PThreadPool - thread pool implementation
  • PDispatchQueue - FIFO queue for serially or concurrently executing tasks, analog to DispatchQueue
  • PDispatchGroup - group of tasks for aggregation and synchronization, analog to DispatchGroup
  • PDispatchSemaphore - semaphore implementation, analog to DispatchSemaphore
  • PDispatchWorkItem - block wrapper, analog to DispatchWorkItem