Opened 12 years ago
Closed 10 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 )
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)
Change History (5)
comment:1 Changed 11 years ago by
| Description: | modified (diff) |
|---|
Changed 10 years ago by
| Attachment: | 0900cfe4a84d.patch added |
|---|
comment:2 Changed 10 years ago by
comment:4 Changed 10 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
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.


[0900cfe4a84d] in the attachment adds a lock to
CplexEnvMy hand is always trembling when working with mutexes. Could you please review it?