浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Frequently Asked Questions about zlib

  •  

  • Is zlib thread-safe?

    Yes. However any library routines that zlib uses and any application- provided memory allocation routines must also be thread-safe. zlib's gz* functions use stdio library routines, and most of zlib's functions use the library memory allocation routines by default. zlib's *Init* functions allow for the application to provide custom memory allocation routines.

    Of course, you should only operate on any given zlib or gzip stream from a single thread at a time.

  • posted on 2013-03-31 15:24  lexus  阅读(302)  评论(0)    收藏  举报