Gregory John Casamento
e96f74362f
* Source/GNUmakefile: Add synchronization.m to GNU_MFILES
...
and correct some formatting.
* Source/synchronization.m: Fix @synchronize support on
Windows. The __weak__ attribute doesn't work on Windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29140 72102866-910b-0410-8b05-ffd578937521
2009-12-19 18:52:05 +00:00
Gregory John Casamento
1292e4a62d
* Source/synchronization.m: Corrected header text.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29114 72102866-910b-0410-8b05-ffd578937521
2009-12-11 06:42:12 +00:00
David Chisnall
f78dd03c31
Added weak attribute to the synchronization functions so that they won't replace equivalent functions provided by the runtime, if available.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28611 72102866-910b-0410-8b05-ffd578937521
2009-09-05 18:49:48 +00:00
Gregory John Casamento
42ce7ccd01
* Headers/Additions/GNUstepBase/GSVersionMacros.h: Add
...
defines for earlier version of Mac OS X back to 10.0.
* Source/synchronization.m: Correct a problem found during testing.
* Testing/synctest/main.m: Updated test.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27136 72102866-910b-0410-8b05-ffd578937521
2008-11-26 15:06:06 +00:00
Richard Frith-MacDonald
eb23f2ee93
Synchronization fixups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26938 72102866-910b-0410-8b05-ffd578937521
2008-10-19 10:49:08 +00:00
Gregory John Casamento
71ec21f32f
* Source/synchronization.m: Remove uneeded objc_sync_remove_node
...
function.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26894 72102866-910b-0410-8b05-ffd578937521
2008-09-30 02:52:29 +00:00
Richard Frith-MacDonald
78ea2c04a3
don't block entire data structure while locking node
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26884 72102866-910b-0410-8b05-ffd578937521
2008-09-27 05:54:27 +00:00
Richard Frith-MacDonald
885e26ee31
Tidied and fixed some locking order bugs.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26879 72102866-910b-0410-8b05-ffd578937521
2008-09-26 07:33:33 +00:00
Gregory John Casamento
2f8bc40aba
Remove free at the end of the objc_sync_exit to prevent issues with freeing the node and then retrieving it from the data structure.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26878 72102866-910b-0410-8b05-ffd578937521
2008-09-25 04:57:43 +00:00
Gregory John Casamento
0fa05c2165
* Source/synchronization.m: Correct issue in objc_sync_remove_node()
...
method where it could do a NULL dereference. Also moved the locks on
the tables to the highest level so to reduce the possibility of
threading issues.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26877 72102866-910b-0410-8b05-ffd578937521
2008-09-25 04:55:42 +00:00
Gregory John Casamento
3d16dda1a5
Add @synchronize support. The synchronize.m file will be committed to GCC as soon as Andrew P. looks at it and it is tested fully. I am committing it here for cases where the compiler can parse @synchronize, but doesn't have the necessary functions in the runtime.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26869 72102866-910b-0410-8b05-ffd578937521
2008-09-24 04:38:27 +00:00