diff options
author | Mike Buland <eichlan@xagasoft.com> | 2020-02-18 08:41:41 -0800 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2020-02-18 08:41:41 -0800 |
commit | ead9b8be325bdadb6b2a4e2a3b22dd34d7df8e4d (patch) | |
tree | b699bbc7ca3ab9ca3155be7778e171fe9d29fb07 /src/stable/thread.cpp | |
parent | 0690dbdf8e57cd148d8b7f7ba56f23d673f7eb22 (diff) | |
download | libbu++-ead9b8be325bdadb6b2a4e2a3b22dd34d7df8e4d.tar.gz libbu++-ead9b8be325bdadb6b2a4e2a3b22dd34d7df8e4d.tar.bz2 libbu++-ead9b8be325bdadb6b2a4e2a3b22dd34d7df8e4d.tar.xz libbu++-ead9b8be325bdadb6b2a4e2a3b22dd34d7df8e4d.zip |
Renamed Bu::Thread::stop to Bu::Thread::forceStop.
This wound up biting me, stop wasn't implemented in one child class and
it was force-stopping it. Stop isn't usually implemented like this in
threadding classes, and this should be no exception.
I'm still exposing the posix threads stop functionality, but it really
shouldn't even be used.
This may break some things, but if it does, they probably weren't
working correctly anyway. Sorry.
Diffstat (limited to 'src/stable/thread.cpp')
-rw-r--r-- | src/stable/thread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stable/thread.cpp b/src/stable/thread.cpp index 98f08ec..7d362e9 100644 --- a/src/stable/thread.cpp +++ b/src/stable/thread.cpp | |||
@@ -51,7 +51,7 @@ bool Bu::Thread::start() | |||
51 | return true; | 51 | return true; |
52 | } | 52 | } |
53 | 53 | ||
54 | bool Bu::Thread::stop() | 54 | bool Bu::Thread::forceStop() |
55 | { | 55 | { |
56 | pthread_cancel( ptHandle ); | 56 | pthread_cancel( ptHandle ); |
57 | 57 | ||