OSDN Git Service

Add runtime profiling infrastructure, not yet working.
[pf3gnuchains/gcc-fork.git] / libgo / runtime / sigqueue.goc
index 7cbd739..2e47222 100644 (file)
@@ -51,7 +51,7 @@ static struct {
 void
 siginit(void)
 {
-       noteclear(&sig);
+       runtime_noteclear(&sig);
 }
 
 // Called from sighandler to send a signal back out of the signal handling thread.
@@ -71,7 +71,7 @@ __go_sigsend(int32 s)
                        // Added to queue.
                        // Only send a wakeup for the first signal in each round.
                        if(mask == 0)
-                               notewakeup(&sig);
+                               runtime_notewakeup(&sig);
                        break;
                }
        }
@@ -81,9 +81,9 @@ __go_sigsend(int32 s)
 // Called to receive a bitmask of queued signals.
 func Sigrecv() (m uint32) {
        // runtime·entersyscall();
-       notesleep(&sig);
+       runtime_notesleep(&sig);
        // runtime·exitsyscall();
-       noteclear(&sig);
+       runtime_noteclear(&sig);
        for(;;) {
                m = sig.mask;
                if(runtime_cas(&sig.mask, m, 0))