Question d’entretien chez SiFive

building a circular array with lock to ensure thread safe