<commit_before>#include "pthread_impl.h"

int pthread_cancel(pthread_t t)
{
	t->cancel = 1;
	return pthread_kill(t, SIGCANCEL);
}<commit_msg>use a_store to set cancel flag in pthread_cancel, to ensure a barrier<commit_after>#include "pthread_impl.h"

int pthread_cancel(pthread_t t)
{
	a_store(&t->cancel, 1);
	return pthread_kill(t, SIGCANCEL);
}
{'fraction_non_alphanumeric': 0.12103746397694524, 'fraction_numerical': 0.005763688760806916, 'mean_word_length': 6.733333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?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': '787353', 'n_tokens_mistral': 142, 'n_tokens_neox': 138, 'n_words': 31}