-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Incorporate the new delayed-free code.
- Loading branch information
Showing
13 changed files
with
339 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,8 @@ | |
* (C) 2002 Ximian, Inc. | ||
*/ | ||
|
||
#include "fake-glib.h" | ||
|
||
#ifndef _WAPI_ATOMIC_H_ | ||
#define _WAPI_ATOMIC_H_ | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,10 @@ | ||
#ifndef __MONO_UTILS_DELAYED_FREE_H__ | ||
#define __MONO_UTILS_DELAYED_FREE_H__ | ||
|
||
#include "fake-glib.h" | ||
#include <pthread.h> | ||
|
||
#define CRITICAL_SECTION pthread_mutex_t | ||
#define EnterCriticalSection pthread_mutex_lock | ||
#define LeaveCriticalSection pthread_mutex_unlock | ||
|
||
typedef void (*MonoHazardousFreeFunc) (gpointer p); | ||
|
||
typedef struct { | ||
gpointer p; | ||
MonoHazardousFreeFunc free_func; | ||
} MonoDelayedFreeItem; | ||
|
||
void mono_delayed_free_push (MonoDelayedFreeItem item); | ||
|
||
gboolean mono_delayed_free_pop (MonoDelayedFreeItem *item); | ||
|
||
#endif |
Oops, something went wrong.