Commit Graph
5 Commits
Author SHA1 Message Date
Kenneth Hsu cb0a3ed2a1 Make constructors for abstract classes protected.
While this does not affect any behavior, it more accurately describes
the accessibility.  Since abstract classes can only be instantiated by
an instance of a derived type, the constructors should at most have
protected access.
2018-04-07 18:04:41 -07:00
Kenneth Hsu c00c6fd19b Make fields containing lock objects readonly.
If one of these fields is accidentally reassigned, it's possible for
threads to be oblivious to an existing lock.  By making the fields
readonly, we will be notified at compile-time if we inadvertently
redefine one of these fields.
2018-03-17 19:59:23 -07:00
Kenneth Hsu 12ca6d320d Add exception message. 2017-10-14 11:54:39 -07:00
Kenneth Hsu 07bfc4a5da Use nameof operator instead of string literal. 2017-10-14 11:43:31 -07:00
FootStark fd06203e8d Added class for piping data to threads. 2016-02-28 21:33:12 +01:00