zoukankan      html  css  js  c++  java
  • ZStack任务

          任何一个任务必须包含初始化和处理函数(即ProcessEvent),其具体信息如下:

    Any OSAL Task must implement two methods:one to perform task initialization and the other to handle task

    events.

    1.2.5.1  Task Initialization

    The callback function to perform task initialization is named like this in the sample applications: “Application

    Name”_Init (e.g. GenericApp_Init). The task initialization function should accomplish the following:

    -  Initialization  of  variables  local  to  or  specific  for  the  corresponding  Application  Object(s).  Any  long-lived heap  memory  allocation should  be  made  in  order  to  facilitate  more  efficient  heap  memory

    management by the OSAL.

    -  Instantiation  of  the  corresponding  Application  Object(s)  by  registering  with  the  AF  layer  (e.g.

    afRegister()).

    -  Registration with the applicable OSAL or HAL system services (e.g.RegisterForKeys()).

    1.2.5.2  Task Event Handler

    The  callback  function  to  handle  task  events  is  named  like  this  in  the  sample  applications:  “Application

    Name”_ProcessEvent (e.g. GenericApp_ProcessEvent()). Any OSAL Task can define up to 15 events in

    addition to the mandatory event.

  • 相关阅读:
    爬虫之字体解密
    【大数据】PySpark 使用 FileSystem 操作 HDFS
    数据读取保存(五)
    Spark SQL 数据源(三)
    hive 之 DML 操作(六)
    【Python】散列的一种实现
    【Python】插入记录并获取其自增ID(PyMysql)
    sbt 编译打包(六)
    Spark SQL (二)
    2022年的第一篇
  • 原文地址:https://www.cnblogs.com/farbeyond/p/5204666.html
Copyright © 2011-2022 走看看