Hi Scott.
Attached you should find my pass at implementing the
mutex-protected global init. Also attached are the necessary
changes for conditional compiling of HTTP filesystem support, and a
minimal pdf-fsys-http.* to allow testing of the conditional
compiling.
It looks fine. I
>
> Well, a second call to pdf_text_init() for example will not
> re-initialize the text module. I guess we should just make sure things
> are not initialized twice.
>
> Yes, much better. In that case we would have to use a mutex in
> pdf_init.
>
> --
> Jose E. Marchesi
>
> We already have that requirement in some base-layer modules, like
>the text module or time module. The text module has a
>pdf_text_context_init() which should be called once at program
>startup, preferably when no other threads are running (so that no
>other thread actually tries
> We should not introduce that requirement! If pdf_init() is supposed
> to be called only once in the lifetime of the application then we
> should provide the user a way to determine if it has been called
> before in an atomic way.
>
Well, a second call to pdf_text_init() for
We already have that requirement in some base-layer modules, like
the text module or time module. The text module has a
pdf_text_context_init() which should be called once at program
startup, preferably when no other threads are running (so that no
other thread actually tries to cal
I just noticed that libcurl requires a call to curl_global_init()
while the program as a whole is single-threaded. The libcurl docs
make this quite clear.
Are we willing to impose this kind of an initialization requirement on
any and all applications that would link with us? The
> I just noticed that libcurl requires a call to curl_global_init() while the
> program as a whole is single-threaded. The libcurl docs make this
> quite clear.
>
> Are we willing to impose this kind of an initialization requirement on
> any and all applications that would link with us? The requ
I just noticed that libcurl requires a call to curl_global_init() while the
program as a whole is single-threaded. The libcurl docs make this
quite clear.
Are we willing to impose this kind of an initialization requirement on
any and all applications that would link with us? The requirement
woul