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:
@@ -616,7 +616,7 @@ load_menu_settings(menu_info &into)
|
|||||||
extern "C" status_t
|
extern "C" status_t
|
||||||
_init_interface_kit_()
|
_init_interface_kit_()
|
||||||
{
|
{
|
||||||
sem_id widthSem = create_sem(1, "TextView WidthBuffer Sem");
|
sem_id widthSem = create_sem(0, "BTextView WidthBuffer Sem");
|
||||||
if (widthSem < 0)
|
if (widthSem < 0)
|
||||||
return widthSem;
|
return widthSem;
|
||||||
BTextView::sWidthSem = widthSem;
|
BTextView::sWidthSem = widthSem;
|
||||||
|
|||||||
Reference in New Issue
Block a user