OSDN Git Service

runtime: Multiplex goroutines onto OS threads.
[pf3gnuchains/gcc-fork.git] / libgo / runtime / sigqueue.goc
index 3a90868..502dc44 100644 (file)
@@ -81,9 +81,9 @@ __go_sigsend(int32 s)
 
 // Called to receive a bitmask of queued signals.
 func Sigrecv() (m uint32) {
-       // runtimeĀ·entersyscall();
+       runtime_entersyscall();
        runtime_notesleep(&sig);
-       // runtimeĀ·exitsyscall();
+       runtime_exitsyscall();
        runtime_noteclear(&sig);
        for(;;) {
                m = sig.mask;
@@ -110,5 +110,6 @@ func Signame(sig int32) (name String) {
 }
 
 func Siginit() {
+       runtime_initsig(1);
        sig.inuse = true;       // enable reception of signals; cannot disable
 }