/*******************************************************************************
 * Copyright (c) 2012 ACIN
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Alois Zoitl - initial API and implementation and/or initial documentation
 *******************************************************************************/
#include "forte_sync.h"

CVXWorksSyncObject::CVXWorksSyncObject(){
  m_oSemBinary = semBCreate(SEM_Q_FIFO, SEM_FULL); //semBCreate allows to be lock/unlock by different task, needed by CThread
  if (SEM_ID_NULL == m_oSemBinary){
    //TODO: check return value for out_of_memory error
  }
}

CVXWorksSyncObject::~CVXWorksSyncObject(){
  semDelete(m_oSemBinary);
}
