---
title: Synchronize
description: "阻塞应用程序运行，直到指定Stream中的所有任务都完成，同步接口。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/msadg/mxvisionug_0858.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/msadg/mxvisionug_0858.html
indexId: 77d9ff91b06a960973f08b00026fd7bf2da4b9575b0b2a155380b70a92686061102
---
# Synchronize

#### 函数功能

阻塞应用程序运行，直到指定Stream中的所有任务都完成，同步接口。


#### 函数原型

```
APP_ERROR Synchronize() const;
```


#### 返回参数说明

| 数据结构 | 说明 |
| --- | --- |
| APP\_ERROR | 程序执行返回的错误码，请参考APP\_ERROR说明。 |
