URL
https://opencores.org/ocsvn/aemb/aemb/trunk
[/] [aemb/] [trunk/] [sw/] [cc/] [aemb/] [thread.hh] - Diff between revs 128 and 137
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 128 |
Rev 137 |
Line 1... |
Line 1... |
/* $Id: thread.hh,v 1.6 2008-04-23 14:19:39 sybreon Exp $
|
/* $Id: thread.hh,v 1.7 2008-04-26 18:05:22 sybreon Exp $
|
**
|
**
|
** AEMB2 HI-PERFORMANCE CPU
|
** AEMB2 HI-PERFORMANCE CPU
|
** Copyright (C) 2004-2007 Shawn Tan Ser Ngiap
|
** Copyright (C) 2004-2007 Shawn Tan Ser Ngiap
|
**
|
**
|
** This file is part of AEMB.
|
** This file is part of AEMB.
|
Line 30... |
Line 30... |
#include "aemb/msr.hh"
|
#include "aemb/msr.hh"
|
|
|
#ifndef AEMB_THREAD_HH
|
#ifndef AEMB_THREAD_HH
|
#define AEMB_THREAD_HH
|
#define AEMB_THREAD_HH
|
|
|
#ifdef __cplusplus
|
|
namespace aemb {
|
namespace aemb {
|
#endif
|
|
|
|
/**
|
/**
|
Checks to see if currently executing Thread 1
|
Checks to see if currently executing Thread 1
|
@return true if is Thread 1
|
@return true if is Thread 1
|
*/
|
*/
|
Line 136... |
Line 134... |
signal(__mutex_rendezvous0);
|
signal(__mutex_rendezvous0);
|
wait(__mutex_rendezvous1);
|
wait(__mutex_rendezvous1);
|
}
|
}
|
}
|
}
|
|
|
#ifdef __cplusplus
|
|
}
|
}
|
#endif
|
|
|
|
#endif
|
#endif
|
|
|
/*
|
/*
|
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
|
Revision 1.6 2008/04/23 14:19:39 sybreon
|
|
Fixed minor bugs.
|
|
Initial use of hardware mutex.
|
|
|
Revision 1.5 2008/04/20 16:35:53 sybreon
|
Revision 1.5 2008/04/20 16:35:53 sybreon
|
Added C/C++ compatible #ifdef statements
|
Added C/C++ compatible #ifdef statements
|
|
|
Revision 1.4 2008/04/12 14:07:26 sybreon
|
Revision 1.4 2008/04/12 14:07:26 sybreon
|
added a rendezvous function
|
added a rendezvous function
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.