pw_thread_threadx: small fixups

Fixes a comment.

Fixes the use of the in use bool in the context by thread creation.

Change-Id: Iea3464e6f05f54d9f39953891ca3034adaa7fc1d
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/44143
Reviewed-by: Wyatt Hepler <hepler@google.com>
Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>
Commit-Queue: Ewout van Bekkum <ewout@google.com>
diff --git a/pw_thread_threadx/public/pw_thread_threadx/config.h b/pw_thread_threadx/public/pw_thread_threadx/config.h
index 0198f4b9..a47e1eb 100644
--- a/pw_thread_threadx/public/pw_thread_threadx/config.h
+++ b/pw_thread_threadx/public/pw_thread_threadx/config.h
@@ -51,7 +51,7 @@
 #define PW_THREAD_THREADX_CONFIG_MIN_PRIORITY TX_MAX_PRIORITIES - 1
 #endif  // PW_THREAD_THREADX_CONFIG_MIN_PRIORITY
 
-// The default stack size in words. By default this uses the minimal ThreadX
+// The default priority level. By default this uses the minimal ThreadX
 // priority level, given that 0 is the highest priority.
 #ifndef PW_THREAD_THREADX_CONFIG_DEFAULT_PRIORITY
 #define PW_THREAD_THREADX_CONFIG_DEFAULT_PRIORITY \
diff --git a/pw_thread_threadx/thread.cc b/pw_thread_threadx/thread.cc
index 500803f..b3ed29a 100644
--- a/pw_thread_threadx/thread.cc
+++ b/pw_thread_threadx/thread.cc
@@ -121,7 +121,7 @@
   PW_DCHECK(!native_type_->in_use());
 
   // Reset the state of the static context in case it was re-used.
-  native_type_->set_in_use(false);
+  native_type_->set_in_use(true);
   native_type_->set_detached(false);
   native_type_->set_thread_done(false);
 #if PW_THREAD_JOINING_ENABLED