Opened 17 years ago

Closed 17 years ago

#608 closed Bugs (Wont Fix)

InterlockedCompareExchange in static_mutex.cpp

Reported by: nobody Owned by: John Maddock
Milestone: Component: regex
Version: None Severity:
Keywords: Cc:

Description

In static_mutex.cpp, the function
scoped_static_mutex_lock::lock() assumes the
availability of InterlockedCompareExchange(). This
function is not implemented in Windows 95.

Change History (1)

comment:1 by John Maddock, 17 years ago

Status: assignedclosed
Logged In: YES 
user_id=14804

I'm closing this as "won't fix": frankly it's time to move
on from Win95.  However, I realise that some folks may need
to support that OS for a while yet, so I can offer two
workarounds:

1) #define BOOST_DISABLE_THREADS

Boost.Regex will then not be thread safe, which may or may
not be acceptable for you.

2) Change the line:

#elif defined(BOOST_HAS_WINTHREADS)

to

#elif 0

In boost/regex/pending/static_mutex.hpp

You will then need to link to the Boost.Threads lib.

Hope this helps,

John Maddock.
Note: See TracTickets for help on using tickets.