As the semaphore acquisition is done "benaphore style", the semaphore should be created with an initial count of 0.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11611 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
20c7c2f958
commit
e949e4cf18
|
@ -616,7 +616,7 @@ load_menu_settings(menu_info &into)
|
|||
extern "C" status_t
|
||||
_init_interface_kit_()
|
||||
{
|
||||
sem_id widthSem = create_sem(1, "TextView WidthBuffer Sem");
|
||||
sem_id widthSem = create_sem(0, "BTextView WidthBuffer Sem");
|
||||
if (widthSem < 0)
|
||||
return widthSem;
|
||||
BTextView::sWidthSem = widthSem;
|
||||
|
|
Loading…
Reference in New Issue