<commit_before>// @(#)root/eve:$Id$
// Author: <NAME> 2007

/**************************************************************************
 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
 * full copyright notice.                                                 *
 **************************************************************************/

#include "AliDimIntNotifier.h"

#include <signal.h>

//______________________________________________________________________________
// Full description of AliDimIntNotifier
//

ClassImp(AliDimIntNotifier)

Long_t AliDimIntNotifier::fgMainThreadId = 0;

void AliDimIntNotifier::SetMainThreadId()
{
  fgMainThreadId = TThread::SelfId();
}

AliDimIntNotifier::AliDimIntNotifier(const TString& service) :
  DimUpdatedInfo(service, -1),
  fNotifyLck(kTRUE),
  fNotifyCnd(&fNotifyLck),
  fLastMessage(-1)
{
  fReThreader.Connect("Timeout()", "AliDimIntNotifier", this, "DimMessage()");
}

void AliDimIntNotifier::StartTimer()
{
  fReThreader.Reset();
  fReThreader.TurnOn();
  pthread_kill(fgMainThreadId, SIGALRM); 
}

void AliDimIntNotifier::StopTimer()
{<commit_msg>Temporary fix, the call to pthread_kill still has to be done correctly<commit_after>// @(#)root/eve:$Id$
// Author: <NAME> 2007

/**************************************************************************
 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
 * full copyright notice.                                                 *
 **************************************************************************/

#include "AliDimIntNotifier.h"

#include <signal.h>

//______________________________________________________________________________
// Full description of AliDimIntNotifier
//

ClassImp(AliDimIntNotifier)

Long_t AliDimIntNotifier::fgMainThreadId = 0;

void AliDimIntNotifier::SetMainThreadId()
{
  fgMainThreadId = TThread::SelfId();
}

AliDimIntNotifier::AliDimIntNotifier(const TString& service) :
  DimUpdatedInfo(service, -1),
  fNotifyLck(kTRUE),
  fNotifyCnd(&fNotifyLck),
  fLastMessage(-1)
{
  fReThreader.Connect("Timeout()", "AliDimIntNotifier", this, "DimMessage()");
}

void AliDimIntNotifier::StartTimer()
{
  fReThreader.Reset();
  fReThreader.TurnOn();
  pthread_kill((pthread_t)fgMainThreadId, SIGALRM); 
}

void AliDimIntNotifier::StopTimer()
{
{'fraction_non_alphanumeric': 0.23086220789685738, 'fraction_numerical': 0.012087026591458501, 'mean_word_length': 5.08578431372549, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '749327', 'n_tokens_mistral': 762, 'n_tokens_neox': 713, 'n_words': 123}