Mutex functions benchmark?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
johnfound
Level 2
Level 2
Posts: 15
Joined: Tue Dec 04, 2012 4:43 pm

Mutex functions benchmark?

Post by johnfound »

Hi. Recently, I am working on an multi-thread application that widely uses mutex functions: WaitForSingleObject and ReleaseMutex.

After some benchmarks I found that these functions are 50..100 times(sic!) slower than in Windows.

The test program compiled natively for Linux (using pthread library) demonstrates only 1.5 times slower functions (compared to the same program not using mutexes) which is pretty acceptable.

So, what can I do in order to speed up these functions?
Locked