Issue Details (XML | Word | Printable)

Key: LOGCXX-3
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Curt Arnold
Reporter: Inge K. Eliassen
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Log4cxx

Missing #else

Created: 30/Jul/04 09:52 AM   Updated: 11/Feb/05 01:48 PM
Return to search
Component/s: Build
Affects Version/s: None
Fix Version/s: 0.10.0

Time Tracking:
Not Specified

Environment: SGI Irix

Resolution Date: 11/Feb/05 01:48 PM


 Description  « Hide
In file thread.cpp the function Thread::InterlockedIncrement is missing an #else directive:

-------------------------- from Thread.cpp------------------------------
#elif defined(HAVE_MS_THREAD)
#if _MSC_VER == 1200 // MSDEV 6
return ::InterlockedDecrement((long *)val);
#else
return ::InterlockedDecrement(val);
#endif // _MSC_VER
#else /****** Without this line the function does not return a value
return *val - 1; // unsafe
#endif
------------------------------------------------------------------------

Also: should not the #else case be
   return --(*val) ?
As it stands now *val is left unchanged...


Similarly for function Thread::InterlockedDecrement.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Curt Arnold added a comment - 11/Feb/05 01:48 PM
log4cxx now uses Apache Portable Runtime for threading and the code mentioned is no longer in codebase.