<commit_before>/* $chaos: thread.h,v 1.2 2002/10/04 19:01:20 per Exp $ */
/* Author: <NAME> <<EMAIL>> */

/* Copyright 2002 chaos development. */
/* Use freely under the terms listed in the file LICENSE. */

/**
 * @file thread.h
 * @brief Thread support. 
 */

#ifndef __STORM_IA32_THREAD_H__
#define __STORM_IA32_THREAD_H__

/* The thread ID of the kernel thread. (idle thread) */
#define THREAD_ID_KERNEL                0

/* Type definitions. */
typedef unsigned int thread_id_t;

#endif /* !__STORM_IA32_THREAD_H__ */<commit_msg>New structure: thread_t<commit_after>/* $chaos: thread.h,v 1.3 2002/10/08 20:16:14 per Exp $ */
/* Author: <NAME> <<EMAIL>> */

/* Copyright 2002 chaos development. */
/* Use freely under the terms listed in the file LICENSE. */

/**
 * @file                thread.h
 * @brief               Thread support. 
 */

#ifndef __STORM_IA32_THREAD_H__
#define __STORM_IA32_THREAD_H__

#include <storm/ia32/tss.h>

/**
 * @brief               The thread ID of the kernel thread. (idle 
 *                      thread) 
 */
#define THREAD_ID_KERNEL                0

/**
 * @brief               Type definitions. 
 */
typedef unsigned int thread_id_t;

/**
 * @brief               A thread.
 */
typedef struct
{
    /**
     * @brief           The thread ID.
     */
    thread_id_t thread_id;

    /**
     * @brief           A lock, to make sure the integrity of the data is
     *                  maintained.
     */
    spinlock_t lock;

    /**
     * @brief           The TSS for this thread.
     */
    tss_t *tss;

    /**
     * @brief           The previous thread for this process.
     */
    struct thread_t *previous;

    /**
     * @brief           The next thread for this process.
     */
    struct thread_t *next;
} thread_t;

#endif /* !__STORM_IA32_THREAD_H__ */
{'fraction_non_alphanumeric': 0.11982330204307012, 'fraction_numerical': 0.030922142462727776, 'mean_word_length': 1.9178743961352658, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '348186', 'n_tokens_mistral': 627, 'n_tokens_neox': 574, 'n_words': 169}