COIN-OR::LEMON - Graph Library

Opened 6 years ago

Closed 4 years ago

#473 closed defect (fixed)

CplexBase is not threadsafe

Reported by: Alpar Juttner Owned by: Alpar Juttner
Priority: major Milestone: LEMON 1.4 release
Component: core Version: hg main
Keywords: Cc:
Revision id:

Description (last modified by Alpar Juttner)

CplexEnv? contains a reference counter which is not mutex-ed. It may cause problem if several CPLEX problems using the same CPLEX environment are created in parallel (from different treads).

Attachments (1)

0900cfe4a84d.patch (2.1 KB) - added by Alpar Juttner 4 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 4 years ago by Alpar Juttner

Description: modified (diff)

Changed 4 years ago by Alpar Juttner

Attachment: 0900cfe4a84d.patch added

comment:2 Changed 4 years ago by Alpar Juttner

[0900cfe4a84d] in the attachment adds a lock to CplexEnv

My hand is always trembling when working with mutexes. Could you please review it?

comment:3 Changed 4 years ago by Balazs Dezso

I reviewed it, and it looks correct for me.

comment:4 in reply to:  3 Changed 4 years ago by Alpar Juttner

Resolution: fixed
Status: newclosed

Replying to deba:

I reviewed it, and it looks correct for me.

Ok, thanks. [0900cfe4a84d] has been merged to branches 1.3 and default. For the record, it also fixes a bug related to reference counting in CplexEnv::operator=().

Note: See TracTickets for help on using tickets.