Class MsgData

Summary

Package:
(main)
File:
bored.icn
Methods:
get_guess, get_reply, send_guess, send_reply

Fields:
gs, mtx_gs, mtx_rp, rp

Source code.

Details
Constructor

MsgData(gs, mtx_gs, rp, mtx_rp)

Parameters:
gs
the thread guess
mtx_gs
mutex to protect gs
rp
the master reply
mtx_rp
mutex to protect rp

Methods:

get_guess()

 get a msg sent by a thread to master


get_reply()

 get a msg posted by the master to a thread


send_guess(g)

 post a msg from a thread to the master


send_reply(r)

 post a reply from the master to a thread


Fields:
gs -- the thread guess

mtx_gs -- mutex to protect gs

mtx_rp -- mutex to protect rp

rp -- the master reply


This page produced by UniDoc on 2021/04/15 @ 23:59:53.