Re: Problem about multi-thread programming

2012-05-05 Thread Tongzhou Li
On Saturday, 5 May 2012 at 18:46:32 UTC, David Nadlinger wrote: On Saturday, 5 May 2012 at 08:45:21 UTC, Tongzhou Li wrote: I wrote: http://codepad.org/K4xQOREZ Besides the other things mentioned, you also need to lock the monitor associated with a condition before notifying/waiting (cf. a r

Re: Problem about multi-thread programming

2012-05-05 Thread Tongzhou Li
On Saturday, 5 May 2012 at 17:03:00 UTC, Chris Cain wrote: On Saturday, 5 May 2012 at 09:28:34 UTC, Tongzhou Li wrote: On Saturday, 5 May 2012 at 09:16:04 UTC, Kagamin wrote: What's in console? object.Error: Access Violation Expected output: 12341234123

Re: undefined reference - Derelict2

2012-05-05 Thread sergeiV
On Sunday, 6 May 2012 at 01:23:48 UTC, sergeiV wrote: On Saturday, 5 May 2012 at 23:42:36 UTC, sergeiV wrote: After succesful building of the Derelict libraries using: 'make -flinux.mak DC=dmd', I am unable to compile the provided example code: http://svn.dsource.org/projects/derelict/branches

Re: undefined reference - Derelict2

2012-05-05 Thread sergeiV
On Saturday, 5 May 2012 at 23:42:36 UTC, sergeiV wrote: After succesful building of the Derelict libraries using: 'make -flinux.mak DC=dmd', I am unable to compile the provided example code: http://svn.dsource.org/projects/derelict/branches/Derelict2/doc/index.html They look like linker problems

undefined reference - Derelict2

2012-05-05 Thread sergeiV
After succesful building of the Derelict libraries using: 'make -flinux.mak DC=dmd', I am unable to compile the provided example code: http://svn.dsource.org/projects/derelict/branches/Derelict2/doc/index.html They look like linker problems to me. rdmd test.d -Iinclude/Derelict2/import/ test.o:

Get systype for FTP-cmd "TYPE"

2012-05-05 Thread mario
I'm working on a small FTP-server and I'm now have to implement the "TYPE"- command which return the type of the system (for instance "UNIX L8")... but is there any chance to get type of the system using D? Is there any getSysType()- function? I was unable to find anything like that in Phobos...

Re: Problem about multi-thread programming

2012-05-05 Thread David Nadlinger
On Saturday, 5 May 2012 at 08:45:21 UTC, Tongzhou Li wrote: I wrote: http://codepad.org/K4xQOREZ Besides the other things mentioned, you also need to lock the monitor associated with a condition before notifying/waiting (cf. a recent discussion on the druntime list). David

Re: Problem about multi-thread programming

2012-05-05 Thread Chris Cain
On Saturday, 5 May 2012 at 09:28:34 UTC, Tongzhou Li wrote: On Saturday, 5 May 2012 at 09:16:04 UTC, Kagamin wrote: What's in console? object.Error: Access Violation Expected output: 12341234123 PS: Line 13 should be: write(Idx); By default, everything

Re: c C deimos

2012-05-05 Thread David Nadlinger
On Saturday, 5 May 2012 at 10:53:59 UTC, Alex Rønne Petersen wrote: Small was always the convention. Not sure why mysql uses a big letter. Huh? ZeroMQ, ncurses, systemd, libmediainfo, libev, liblzma, libevent, OpenSSL, libexif, libsndfile and portaudio all use a capital »C« as directory name

Re: c C deimos

2012-05-05 Thread David Nadlinger
On Saturday, 5 May 2012 at 10:53:59 UTC, Alex Rønne Petersen wrote: Small was always the convention. Not sure why mysql uses a big letter. Huh? ZeroMQ, ncurses, systemd, libmediainfo, libev, liblzma, libevent, OpenSSL, libexif, libsndfile and portaudio all use a capital »C« as directory name

Re: c C deimos

2012-05-05 Thread Alex Rønne Petersen
On 05-05-2012 12:47, sclytrack wrote: Why does deimos have a small letter c and sometimes a big letter C? libmysql has the big letter C. Which one is going to be the official one? Small was always the convention. Not sure why mysql uses a big letter. -- - Alex

c C deimos

2012-05-05 Thread sclytrack
Why does deimos have a small letter c and sometimes a big letter C? libmysql has the big letter C. Which one is going to be the official one?

Re: Problem about multi-thread programming

2012-05-05 Thread Tongzhou Li
On Saturday, 5 May 2012 at 09:16:04 UTC, Kagamin wrote: What's in console? object.Error: Access Violation Expected output: 12341234123 PS: Line 13 should be: write(Idx);

Re: Problem about multi-thread programming

2012-05-05 Thread Kagamin
What's in console?

Problem about multi-thread programming

2012-05-05 Thread Tongzhou Li
Hello everyone! I'm learning D and trying to write some sample code in D. I wrote: http://codepad.org/K4xQOREZ It compiles well with dmd 2.0.59, but I got an error when running: object.Error: Access Violation Any one help? Thanks.