You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2008/07/25 01:47:46 UTC
DO NOT REPLY [Bug 24325] apr_reslist doesn't work without threads
https://issues.apache.org/bugzilla/show_bug.cgi?id=24325
Bojan Smojver <bo...@rexursive.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bojan@rexursive.com
Status|NEEDINFO |ASSIGNED
--- Comment #5 from Bojan Smojver <bo...@rexursive.com> 2008-07-24 16:47:45 PST ---
I think we should close this bug with WONTFIX for the following reasons:
1. If we add:
+ #else
+ #error "apr_reslist doesn't support non-threaded environments"
Existing software that correctly checks APR_HAS_THREADS in the code will fail
compilation, because it will now error on apr_reslist.h inclusion.
2. I'm not sure what the point of reslist would be (as implemented) when there
is no more than one thread - you can simply store that object into a global
variable (or a hash table, ring etc. if you have more than one). The pattern in
the code should be:
#if APR_HAS_THREADS
do something with reslist
#else
do something with global variable holding the resource
#endif
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org