commit | b45fbf189591dd7ccbaa71bed45cfc743d319ab8 | [log] [tgz] |
---|---|---|
author | Bogdan Caprita <caprita@google.com> | Tue May 12 16:45:08 2015 -0700 |
committer | Bogdan Caprita <caprita@google.com> | Tue May 12 16:45:30 2015 -0700 |
tree | 6071bbc31d50c4594eec439e61c3862ba4cdd70e | |
parent | 0fbad0167f63136509983b6827c5cd6169e6b756 [diff] |
services/device/device: make tapes thread-safe, add unit tests for tapes Make the tapes thread-safe s.t. they can be used for servicing rpc requests that are performed in parallel. Add unit test cases to cover tape functionality, and in particular, one test case runs tape operations in parallel to verify thread-safety (in practice, the test has been observed to fail when not using locking in tapes). Also, change SetResponses to take a variable arg list instead of a slice. This is mostly for convenience, since the overwhelmingly common case is to only set one response. Change-Id: I90df6acfc02934fcffc0d042129cff530fcd52be
This repository contains a reference implementation of the Vanadium APIs.
Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.