add simple synchronization mechanism.

R=rsc
DELTA=25  (19 added, 1 deleted, 5 changed)
OCL=17346
CL=17346
This commit is contained in:
Rob Pike 2008-10-17 10:58:34 -07:00
parent 925454e932
commit cac904b609
2 changed files with 24 additions and 6 deletions

View file

@ -39,6 +39,6 @@ func main() {
t = reflect.ParseTypeString("*(a int8, b int32)");
s = reflect.ToString(t); print(s, "\n");
t = reflect.ParseTypeString("struct {c *(? *chan *int32, ? *int8)}");
t = reflect.ParseTypeString("struct {c *(? *chan *P.integer, ? *int8)}");
s = reflect.ToString(t); print(s, "\n");
}