<commit_before>#ifndef __INCLUDED_458662EC691611E6AA6E0021CC66E280
#define __INCLUDED_458662EC691611E6AA6E0021CC66E280

#include "RObject.h"
#include "RSignal.h"
#include <limits>

class REventLoop;
class RThreadPrivate;
class RCoreApplication;
class RThread : public RObject
{
public:
#ifdef R_OS_FREERTOS
  typedef TaskHandle_t Id;

#else
  struct IdContext
  {
    int value;
  };

  typedef struct IdContext *Id;

#endif // #ifdef R_OS_FREERTOS

  /**
   * This enum type indicates how the operating system should schedule newly
   * created threads.
   */
  enum Priority
  {
    /// scheduled only when no other threads are running.
    IdlePriority = 0 /* = tskIDLE_PRIORITY */,
    /// scheduled less often than LowPriority.
    LowestPriority = configMAX_PRIORITIES / 7,
    /// scheduled less often than NormalPriority.
    LowPriority = configMAX_PRIORITIES / 4,
    /// the default priority of the operating system.
    NormalPriority = configMAX_PRIORITIES / 2,
    /// scheduled more often than NormalPriority.
    HighPriority = NormalPriority + LowestPriority,
    /// scheduled more often than HighPriority.
    HighestPriority = NormalPriority + LowPriority,
    /// scheduled as often as possible.
    TimeCriticalPriority = configMAX_PRIORITIES - 1,
    /// use the same priority as the creating thread. This is the default.
    InheritPriority,
  };

private:
  RThread(RThread::Id handle);

public:
  RThread();

  virtual
  ~RThread();
<commit_msg>Added NonOS mode Priority stuffs<commit_after>#ifndef __INCLUDED_458662EC691611E6AA6E0021CC66E280
#define __INCLUDED_458662EC691611E6AA6E0021CC66E280

#include "RObject.h"
#include "RSignal.h"
#include <limits>

class REventLoop;
class RThreadPrivate;
class RCoreApplication;
class RThread : public RObject
{
public:
#ifdef R_OS_FREERTOS
  typedef TaskHandle_t Id;

#else
  struct IdContext
  {
    int value;
  };

  typedef struct IdContext *Id;

#endif // #ifdef R_OS_FREERTOS

  /**
   * This enum type indicates how the operating system should schedule newly
   * created threads.
   */
#if defined(R_OS_FREERTOS)
  enum Priority
  {
    /// scheduled only when no other threads are running.
    IdlePriority = 0 /* = tskIDLE_PRIORITY */,
    /// scheduled less often than LowPriority.
    LowestPriority = configMAX_PRIORITIES / 7,
    /// scheduled less often than NormalPriority.
    LowPriority = configMAX_PRIORITIES / 4,
    /// the default priority of the operating system.
    NormalPriority = configMAX_PRIORITIES / 2,
    /// scheduled more often than NormalPriority.
    HighPriority = NormalPriority + LowestPriority,
    /// scheduled more often than HighPriority.
    HighestPriority = NormalPriority + LowPriority,
    /// scheduled as often as possible.
    TimeCriticalPriority = configMAX_PRIORITIES - 1,
    /// use the same priority as the creating thread. This is the default.
    InheritPriority,
  };

#else // #if defined(R_OS_FREERTOS)
  enum Priority
  {
    /// scheduled only when no other threads are running.
    IdlePriority = 0 /* = tskIDLE_PRIORITY */,
    /// scheduled less often than LowPriority.
    LowestPriority,
    /// scheduled less often than NormalPriority.
    LowPriority,
    /// the default priority of the operating system.
    NormalPriority,
    /// scheduled more often than NormalPriority.
    HighPriority,
    /// scheduled more often than HighPriority.
    HighestPriority,
    /// scheduled as often as possible.
    TimeCriticalPriority,
    /// use the same priority as the creating thread. This is the default.
    InheritPriority,
  };

#endif // #if defined(R_OS_FREERTOS)

private:
  RThread(RThread::Id handle);

public:
  RThread();

  virtual
  ~RThread();

{'fraction_non_alphanumeric': 0.08189189189189189, 'fraction_numerical': 0.027837837837837838, 'mean_word_length': 3.3135198135198136, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3459237', 'n_tokens_mistral': 1185, 'n_tokens_neox': 1107, 'n_words': 344}