apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24325] apr_reslist doesn't work without threads
Date Thu, 24 Jul 2008 23:47:46 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=24325


Bojan Smojver <bojan@rexursive.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bojan@rexursive.com
             Status|NEEDINFO                    |ASSIGNED




--- Comment #5 from Bojan Smojver <bojan@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


Mime
View raw message