Compare Revisions

Using C++ in Mozilla code

Revision 482635:

Revision 482635 by Jcranmer on

Revision 482637:

Revision 482637 by Jcranmer on

Title:
Using C++ in Mozilla code
Using C++ in Mozilla code
Slug:
Using_CXX_in_Mozilla_code
Using_CXX_in_Mozilla_code
Content:

Revision 482635
Revision 482637
t1195    <p>t1195    <table class="standard-table">
1196      sec 20: &lt;chrono&gt;1196      <thead>
1197    </p>1197        <tr>
1198    <p>1198          <th scope="col">
1199      sec 22: &lt;locale&gt;1199            Name
1200    </p>1200          </th>
1201    <p>1201          <th scope="col">
1202      sec 29: &lt;atomic&gt;1202            Header
1203    </p>1203          </th>
1204    <p>1204          <th scope="col">
1205      sec 30: &lt;thread&gt; &lt;mutex&gt; &lt;cond_var&gt;1205            MSVC
1206    </p>1206          </th>
1207          <th scope="col">
1208            libstdc++
1209          </th>
1210          <th scope="col">
1211            libc++
1212          </th>
1213          <th scope="col">
1214            STLport
1215          </th>
1216          <th scope="col">
1217            Purpose
1218          </th>
1219          <th scope="col">
1220            Notes
1221          </th>
1222        </tr>
1223      </thead>
1224      <tbody>
1225        <tr>
1226          <td>
1227            <code>std::chrono::duration</code>
1228          </td>
1229          <td>
1230            <code>&lt;chrono&gt;</code>
1231          </td>
1232          <td>
1233            &nbsp;
1234          </td>
1235          <td>
1236            &nbsp;
1237          </td>
1238          <td>
1239            &nbsp;
1240          </td>
1241          <td>
1242            &nbsp;
1243          </td>
1244          <td>
1245            &nbsp;
1246          </td>
1247          <td>
1248            &nbsp;
1249          </td>
1250        </tr>
1251        <tr>
1252          <td>
1253            <code>std::chrono::</code>*<code>_clock</code>
1254          </td>
1255          <td>
1256            <code>&lt;chrono&gt;</code>
1257          </td>
1258          <td>
1259            &nbsp;
1260          </td>
1261          <td>
1262            &nbsp;
1263          </td>
1264          <td>
1265            &nbsp;
1266          </td>
1267          <td>
1268            &nbsp;
1269          </td>
1270          <td>
1271            &nbsp;
1272          </td>
1273          <td>
1274            &nbsp;
1275          </td>
1276        </tr>
1277        <tr>
1278          <td>
1279            <code>std::chrono::time_point</code>
1280          </td>
1281          <td>
1282            <code>&lt;chrono&gt;</code>
1283          </td>
1284          <td>
1285            &nbsp;
1286          </td>
1287          <td>
1288            &nbsp;
1289          </td>
1290          <td>
1291            &nbsp;
1292          </td>
1293          <td>
1294            &nbsp;
1295          </td>
1296          <td>
1297            &nbsp;
1298          </td>
1299          <td>
1300            &nbsp;
1301          </td>
1302        </tr>
1303        <tr>
1304          <td>
1305            <code>std::atomic</code>
1306          </td>
1307          <td>
1308            <code>&lt;atomic&gt;</code>
1309          </td>
1310          <td>
1311            2012
1312          </td>
1313          <td>
1314            4.4
1315          </td>
1316          <td>
1317            3.0
1318          </td>
1319          <td>
1320            &nbsp;
1321          </td>
1322          <td>
1323            &nbsp;
1324          </td>
1325          <td>
1326            Use <code>mozilla::Atomic</code> from <code>mozilla/A
 >tomics.h</code> instead.
1327          </td>
1328        </tr>
1329        <tr>
1330          <td>
1331            <code>std::thread</code>
1332          </td>
1333          <td>
1334            &lt;thread&gt;
1335          </td>
1336          <td>
1337            &nbsp;
1338          </td>
1339          <td>
1340            &nbsp;
1341          </td>
1342          <td>
1343            &nbsp;
1344          </td>
1345          <td>
1346            &nbsp;
1347          </td>
1348          <td>
1349            &nbsp;
1350          </td>
1351          <td>
1352            &nbsp;
1353          </td>
1354        </tr>
1355        <tr>
1356          <td>
1357            <code>std::mutex</code>
1358          </td>
1359          <td>
1360            <code>&lt;mutex&gt;</code>
1361          </td>
1362          <td>
1363            &nbsp;
1364          </td>
1365          <td>
1366            &nbsp;
1367          </td>
1368          <td>
1369            &nbsp;
1370          </td>
1371          <td>
1372            &nbsp;
1373          </td>
1374          <td>
1375            &nbsp;
1376          </td>
1377          <td>
1378            &nbsp;
1379          </td>
1380        </tr>
1381        <tr>
1382          <td>
1383            <code>std::shared_mutex</code> (C++14)
1384          </td>
1385          <td>
1386            <code>&lt;mutex&gt;</code>
1387          </td>
1388          <td>
1389            &nbsp;
1390          </td>
1391          <td>
1392            &nbsp;
1393          </td>
1394          <td>
1395            &nbsp;
1396          </td>
1397          <td>
1398            &nbsp;
1399          </td>
1400          <td>
1401            &nbsp;
1402          </td>
1403          <td>
1404            &nbsp;
1405          </td>
1406        </tr>
1407        <tr>
1408          <td>
1409            <code>std::lock_guard</code>
1410          </td>
1411          <td>
1412            <code>&lt;mutex&gt;</code>
1413          </td>
1414          <td>
1415            &nbsp;
1416          </td>
1417          <td>
1418            &nbsp;
1419          </td>
1420          <td>
1421            &nbsp;
1422          </td>
1423          <td>
1424            &nbsp;
1425          </td>
1426          <td>
1427            &nbsp;
1428          </td>
1429          <td>
1430            &nbsp;
1431          </td>
1432        </tr>
1433        <tr>
1434          <td>
1435            <code>std::shared_lock</code> (C++14)
1436          </td>
1437          <td>
1438            <code>&lt;mutex&gt;</code>
1439          </td>
1440          <td>
1441            &nbsp;
1442          </td>
1443          <td>
1444            &nbsp;
1445          </td>
1446          <td>
1447            &nbsp;
1448          </td>
1449          <td>
1450            &nbsp;
1451          </td>
1452          <td>
1453            &nbsp;
1454          </td>
1455          <td>
1456            &nbsp;
1457          </td>
1458        </tr>
1459        <tr>
1460          <td>
1461            <code>std::call_once</code>
1462          </td>
1463          <td>
1464            <code>&lt;mutex&gt;</code>
1465          </td>
1466          <td>
1467            &nbsp;
1468          </td>
1469          <td>
1470            &nbsp;
1471          </td>
1472          <td>
1473            &nbsp;
1474          </td>
1475          <td>
1476            &nbsp;
1477          </td>
1478          <td>
1479            &nbsp;
1480          </td>
1481          <td>
1482            &nbsp;
1483          </td>
1484        </tr>
1485        <tr>
1486          <td>
1487            <code>std::condition_variable</code>
1488          </td>
1489          <td>
1490            <code>&lt;condition_variable&gt;</code>
1491          </td>
1492          <td>
1493            &nbsp;
1494          </td>
1495          <td>
1496            &nbsp;
1497          </td>
1498          <td>
1499            &nbsp;
1500          </td>
1501          <td>
1502            &nbsp;
1503          </td>
1504          <td>
1505            &nbsp;
1506          </td>
1507          <td>
1508            &nbsp;
1509          </td>
1510        </tr>
1511        <tr>
1512          <td>
1513            <code>std::promise</code>
1514          </td>
1515          <td>
1516            <code>&lt;future&gt;</code>
1517          </td>
1518          <td>
1519            &nbsp;
1520          </td>
1521          <td>
1522            &nbsp;
1523          </td>
1524          <td>
1525            &nbsp;
1526          </td>
1527          <td>
1528            &nbsp;
1529          </td>
1530          <td>
1531            &nbsp;
1532          </td>
1533          <td>
1534            &nbsp;
1535          </td>
1536        </tr>
1537        <tr>
1538          <td>
1539            <code>std::future</code>
1540          </td>
1541          <td>
1542            <code>&lt;future&gt;</code>
1543          </td>
1544          <td>
1545            &nbsp;
1546          </td>
1547          <td>
1548            &nbsp;
1549          </td>
1550          <td>
1551            &nbsp;
1552          </td>
1553          <td>
1554            &nbsp;
1555          </td>
1556          <td>
1557            &nbsp;
1558          </td>
1559          <td>
1560            &nbsp;
1561          </td>
1562        </tr>
1563        <tr>
1564          <td>
1565            <code>std::async</code>
1566          </td>
1567          <td>
1568            <code>&lt;future&gt;</code>
1569          </td>
1570          <td>
1571            &nbsp;
1572          </td>
1573          <td>
1574            &nbsp;
1575          </td>
1576          <td>
1577            &nbsp;
1578          </td>
1579          <td>
1580            &nbsp;
1581          </td>
1582          <td>
1583            &nbsp;
1584          </td>
1585          <td>
1586            &nbsp;
1587          </td>
1588        </tr>
1589      </tbody>
1590    </table>

Back to History