Project

General

Profile

Idea #22068

Use recursive mutex in CommandableFragmentGenerator to improve code clarity

Added by Eric Flumerfelt 5 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
03/06/2019
Due date:
% Done:

0%

Estimated time:
Experiment:
-
Duration:

Description

Kurt noticed that the dataBufferDepthFragments_ parameter is not updated at the same time as the dataBufferDepthBytes_ parameter, mostly because it is bound to dataBuffer_.size(). To improve code clarity, it would probably be best to replace dataBufferDepthFragments_ with a function that locks the dataBufferMutex_ recursively and returns dataBuffer_.size().



Also available in: Atom PDF