Add structure locking with mutex
2 files changed