- removed csfml-system dependency!

use phobos functionality for that

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1438 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
trass3r 2010-03-03 22:04:19 +00:00
parent b4189fd660
commit d60a7be49a
8 changed files with 9 additions and 406 deletions

View file

@ -31,10 +31,9 @@ import dsfml.system.common;
import dsfml.system.vector3;
import dsfml.system.linkedlist;
import dsfml.system.lock;
import dsfml.system.mutex;
import dsfml.system.sleep;
//import dsfml.system.thread;
import core.thread;
import core.sync.mutex;
import dsfml.audio.sound;
import dsfml.audio.soundsource;
@ -251,7 +250,7 @@ private:
SoundStream temp = s_instances[id];
//if no samples are available but streaming is not stopped, we sleep the thread
while (temp.m_samples.empty && temp.m_flag)
sleep(0.01f);
Thread.sleep(10_000_0); // 10ms
scope Lock l = new Lock(temp.m_mutex);
if (!temp.m_samples.empty)
@ -294,7 +293,7 @@ private:
m_samples.enqueue(new Data(data, ret));
}
}
sleep(0.1f);
Thread.sleep(100_000_0); // 100ms
}
}