punlock()

punlock()

概要

実装

  102: static void
  103: punlock(Pool *p)
  104: {
  105:         Private *pv;
  106:         char msg[sizeof pv->msg];
  107: 
  108:         pv = p->private;
  109:         if(pv->msg[0] == 0){
  110:                 iunlock(&pv->lk);
  111:                 return;
  112:         }
  113: 
  114:         memmove(msg, pv->msg, sizeof msg);
  115:         iunlock(&pv->lk);
  116:         iprint("%.*s", sizeof pv->msg, msg);
  117: }