Message263377
Obmalloc now has theoretical support for locking. I say theoretical because I'm not convinced it's ever been used.
The interface is defined through five macros:
SIMPLELOCK_DECL
SIMPLELOCK_INIT
SIMPLELOCK_FINI
SIMPLELOCK_LOCK
SIMPLELOCK_UNLOCK
Internally these are used to define an actual lock to be used in the module. The lock, "_malloc_lock", is declared, then four defines are made building on top of the SIMPLELOCK macros, named:
LOCK
UNLOCK
LOCK_INIT
LOCK_FINI
LOCK_INIT and LOCK_FINI are never called. So unless your lock doesn't happen to require initialization or shutdown, this API is misimplemented.
Victor: this was your work, right? If not, sorry, please unassign/de-nosy yourself. |
|
Date |
User |
Action |
Args |
2016-04-14 07:55:46 | larry | set | recipients:
+ larry, vstinner |
2016-04-14 07:55:46 | larry | set | messageid: <1460620546.75.0.247903713074.issue26753@psf.upfronthosting.co.za> |
2016-04-14 07:55:46 | larry | link | issue26753 messages |
2016-04-14 07:55:46 | larry | create | |
|