Menu

#234 get_cur_line_idx() in class.Channel_Buffer_Mem.inc

open
nobody
5
2004-10-29
2004-10-29
Anonymous
No

Name: C. Heimerl
Email: mail@t3c.de

function get_cur_line_idx() {
if (!$this->connected) $this->connect();
$this->lock();
$this->cur_line_idx = shm_get_var($this->shm_id,CB_CUR_LINE_IDX);
return $this->cur_line_idx;
$this->unlock();
}

hi,

da ihr einen return machte bevor das unlock aufgerufen wird, kommt das unlock nie zum zug.

lg C.Heimerl

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.