Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Marke Encoder as Send + Sync to enable multithreaded use (#4)
To quote LAME 3.99.5 HACKING: THREADSAFE: Lame should now be thread safe and re-entrant. The only problem seems to be some OS's allocate small stacks (< 128K) to threads launched by applictions, and this is not enough for LAME. Fix is to increase the stack space, or move some of our automatic variables onto the heap with by using bug-prove malloc()'s and free().
- Loading branch information