uriparser / uriparser

:hocho: Strictly RFC 3986 compliant URI parsing and handling library written in C89; moved from SourceForge to GitHub

Home Page:https://uriparser.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is this lib thread-safe?

Becavalier opened this issue · comments

The methods that I exactly mentioned are uriParseSingleUriA, uriDissectQueryMallocA, and uriFreeQueryListA.

I can think of two aspects to this question:

  • Uriparser doesn't have global state, so you can e.g. parse URIs in multiple threads without conflict.
  • Uriparser doesn't use any locks or other means of synchronization by itesel. Whenever another thread is writing to UriUri[AW] structures, no other thread should be writing or reading from it: the app using uriparser will have to use locks/mutexes/... itself.

Does that answer the question?

I see, thanks!