sdk: libsupc++ && gcc_eh

git-svn-id: svn://kolibrios.org@4383 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge)
2013-12-19 13:29:20 +00:00
parent caec3d3e42
commit 77990d14e3
71 changed files with 20465 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
void __mutex_lock(volatile int *val);
typedef struct {
int counter;
void *sema;
} __gthread_mutex_t;
void __gthr_win32_mutex_init_function (__gthread_mutex_t *mutex)
{
mutex->counter = 0;
mutex->sema = 0;
}
int __gthr_win32_mutex_lock (__gthread_mutex_t *mutex)
{
__mutex_lock(&mutex->counter);
return 0;
}
int
__gthr_win32_mutex_unlock (__gthread_mutex_t *mutex)
{
mutex->counter = 0;
return 0;
}