mirror of
https://gitee.com/johng/gf.git
synced 2024-12-05 05:37:55 +08:00
15 lines
469 B
Go
15 lines
469 B
Go
// Copyright 2018 gf Author(https://gitee.com/johng/gf). All Rights Reserved.
|
|
//
|
|
// This Source Code Form is subject to the terms of the MIT License.
|
|
// If a copy of the MIT was not distributed with this file,
|
|
// You can obtain one at https://gitee.com/johng/gf.
|
|
|
|
package gproc
|
|
|
|
// 获取其他进程传递到当前进程的消息包,阻塞执行
|
|
func Receive() *Msg {
|
|
if v := commReceiveQueue.PopFront(); v != nil {
|
|
return v.(*Msg)
|
|
}
|
|
return nil
|
|
} |